vityaman-edu / lms

A simple learning management system.
Apache License 2.0
4 stars 0 forks source link

Move 'required' key at OpenAPI Spec after properties #32

Closed vityaman closed 6 months ago

vityaman commented 7 months ago

Before:

    User:
      required:
        - id
        - alias
      type: object
      properties:
        id:
          $ref: '#/components/schemas/UserId'
        alias:
          $ref: '#/components/schemas/UserAlias'

After:

    User:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/UserId'
        alias:
          $ref: '#/components/schemas/UserAlias'
      required:
        - id
        - alias
vityaman commented 7 months ago

https://spec.openapis.org/oas/v3.0.3