Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema error in Accounting OpenAPI spec #694

Open
bhaeussermann opened this issue Nov 8, 2024 · 2 comments
Open

Schema error in Accounting OpenAPI spec #694

bhaeussermann opened this issue Nov 8, 2024 · 2 comments

Comments

@bhaeussermann
Copy link

The Accounting OpenAPI specification contains a redundant "type" property. This causes an error when loading the spec using some libraries such as Graeae:

paths:
  /Accounts:
    parameters:
      - $ref: '#/components/parameters/requiredHeader'
        type: string

Expected Behavior

The spec must not report any errors in the Swagger Editor. Ideally, it shouldn't show any warnings either.

Current Behavior

When entering the Account spec the Swagger Editor reports the error "Object includes not allowed fields" on line 16.

There are also several warnings showing up.

Possible Solution

The type property must be removed from the requiredHeaders reference (line 17).

Steps to Reproduce (for bugs)

  1. Copy the Accounting spec into the Swagger Editor.
  2. Wait at least 3 minutes in order to give it time to validate the spec.

The editor reports an error "Object includes not allowed fields" on line 16.

Context

Because of the error in the spec I cannot load it using the Graeae library without making changes to the spec.

Copy link

github-actions bot commented Nov 8, 2024

PETOSS-671

Copy link

github-actions bot commented Nov 8, 2024

Thanks for raising an issue, a ticket has been created to track your request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant