Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

In OAS 20 to RAML 1 conversion, properties in RAML should be required: false when a required array is missing in OAS #50

Open
arghasarkar opened this issue Sep 4, 2018 · 0 comments

Comments

@arghasarkar
Copy link

When converting OAS 20 to RAML 1, the properties should be set required: false when no required array is present in the OAS as the default required value in OAS is true AND there are more than one property present.

If there is only one property, it's working fine.

OAS 20 (Source)

 Tag:
    type: object
    properties:
      id:
        type: integer
        format: int64
      name:
        type: string

RAML 1 (Expected)

  Tag:
    type: object
    properties:
      id:
        type: integer
        format: int64
        required: false
      name:
        type: string
        required: false

RAML 1 (Observed)

  Tag:
    type: object
    properties:
      id:
        type: integer
        format: int64
      name:
        type: string
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant