importer-rest-api-specs - producing duplicate DirectAssignment
mappings when create and read property payloads become optional
#3588
Labels
tool/data-api
Issues with the Data API
To support generating simple resources that contain a resource ID segment of type scope we've had to introduce the changes in #3586.
One of the changes reverses the logic for when we set the Create and Read property payload and model names, no longer throwing an error if they are missing. As a result these properties are no longer required and have become optional. This change should also be reflected in the model for the
operationPayloads
, making the properties pointers:pandora/tools/importer-rest-api-specs/components/schema/internal.go
Lines 7 to 22 in 19980c5
Making this change results in duplicate
DirectAssignment
definitions in all the existing generated resourcese.g. the
fieldMappings
field inKubernetesClusterTrustedAccessRoleBinding-Resource-Mappings.json
now looks like so:Whereas it should actually remain like so
The text was updated successfully, but these errors were encountered: