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

Clarify if direction is mandatory, or not #10

Open
aaime opened this issue Sep 19, 2024 · 0 comments
Open

Clarify if direction is mandatory, or not #10

aaime opened this issue Sep 19, 2024 · 0 comments

Comments

@aaime
Copy link

aaime commented Sep 19, 2024

In the openapi.yml file, we have the following:

    sortby:
      type: array
      description: |
        An array of objects containing a property name and sort direction.
      minItems: 1
      items:
        type: object
        required:
          - field
          - direction
        properties:
          field:
            type: string
          direction:
            type: string
            default: asc
            enum:
              - asc
              - desc

On one side, the direction field is marked as mandatory, but then it's also given a default value that will never be used.
What was the intention here?

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