Sage-Bionetworks / rocc-schemas

OpenAPI specification of the Registry of Open Community Challenges
Apache License 2.0
0 stars 0 forks source link

Enable to sort challenges by createdAt and updatedAt #124

Closed tschaffter closed 3 years ago

tschaffter commented 3 years ago

Fixes #123

Notes

Before:

    - in: query
      name: limit
      description: Maximum number of results returned
      required: false
      schema:
        type: integer
        default: 10
        minimum: 10
        maximum: 100

After:

    - name: limit
      in: query
      description: Maximum number of results returned
      required: false
      schema:
        type: integer
        default: 10
        minimum: 10
        maximum: 100

If this proposal is accepted, this change will be propagated to all other path parameters in a separate PR.

vpchung commented 3 years ago

I propose to swap the parameter properties name and in so that name comes first

Sounds good to me. I think Swagger lists them like this as well.

tschaffter commented 3 years ago

@vpchung Swagger doc didn't adopt a consistent behavior (example: https://swagger.io/specification/)

vpchung commented 3 years ago

lol well that's awesome....