swagger-editor
swagger-editor copied to clipboard
New release doesn't support Yaml's Merge Key Language-Independent Type "<<:"
whenever we try to use the <<: operator, swagger editor returns : Structural error at components.schemas.AddressObject.properties.AddressID should NOT have additional properties additionalProperty: <<

Same thing here, except that in addition it's complaining of duplicated mapping keys when using multiple merge keys on the same object.

I've changed the property names for pasting the example but this spec has not changed in a while and it was working properly on Swagger Editor before.
Please note that it's working fine when I use this Swagger Viewer chrome extension, which is probably using an older version of Swagger Editor.
Unfortunately, I'm having the same issue here:

I had to downgrade back to swagger editor v 4.2.7 inorder to run my application...
Hi everybody,
This regression comes actually from SwaggerUI (commit), which needed to load YAML definitions using JSON Schema ruleset.
JSON Schema rule-set is one of the constraints for creating OpenAPI definitions in YAML 1.2. Here is the excerpt from OpenAPI spec:

Having said that, Merge Key Language-Independent Type for YAML™ Version 1.1 has been removed from YAML 1.2.x spec and shouldn't be used any more. Here is the YAML 1.2 changelog excerpt which explicitly states that this feature has been removed:

We will unfortunately not be introducing the Merge Key Language-Independent Type for YAML™ Version 1.1 back. Even new SwaggerEditor@next (https://editor-next.swagger.io/) will not support it as well (it will support anchors and aliases in future). I'm sorry for this bad news, you would have to migrate your definitions to YAML 1.2, using JSON Schema ruleset for everything to be working as expected.
I'm closing this, please reopen if you need guidance for migrating out of Merge Key Language-Independent Type for YAML™ Version 1.1.