biocad / openapi3

OpenAPI 3.0 data model
BSD 3-Clause "New" or "Revised" License
39 stars 53 forks source link

Output `scopes` field even when empty #65

Closed JohanWinther closed 1 year ago

JohanWinther commented 1 year ago

Currently, setting the OAuth2 scopes to an empty map omits the field scopes from the flow object. However, according to this guide the scopes field should contain an empty object {} when the map is empty (which it MAY be according to the spec).

This PR fixes this issue so that the scopes field is always present even when empty.