Open lmazuel opened 6 years ago
Had a look at this and the issue has nothing to do with the allOf and the properties being together or not ( although they should ).
The issue comes form the fact that "Resource" is defined twice. Once in the spec itself and once in the https://github.com/Azure/azure-rest-api-specs/blob/master/specification/common-types/resource-management/v1/types.json file. Since the second one is loaded when resolving references it overwrites the first one and it looses the 2 extra fields.
Solution is to reference the "Resource" from types and remove it from this spec. This is to be noted for any spec that refers types.json
, they should not overwrite any of the params there.
@vladbarosan should we close this as invalid then?
@lmazuel actually lets keep it open, ill rename to reflect that we might need to either fail on duplicate models or have a way to handle them
This raise an OAV problem: https://github.com/Azure/azure-rest-api-specs/pull/3495
Swagger
JSON to match:
Creates: