This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Types
is not an alias of schemas
#778
Labels
Types
is not an alias of schemas
#778
The description of the top level
schemas
key says that it is a deprecated alias for the newtypes
key.This means that I would expect the
types
key to be present if the raml file contains aschemas
key.This is not the case in the output of raml2obj / raml-js-parser right now (you get one or the other).
Furthermore, the content of these keys is also not identical.
schemas
will return an array of objects:types
will return a map:The content of an included json schema will also be in different properties of the objects depending on whether the top level key is schemas or types.
I still need to try with inline schema definitions to see what the differences are there.
This means that I have to treat both keys seperately when rendering them in
raml2html-slate-theme
.Is there a reason for these differences, or can the structure be brought in line so that
schemas
really behaves like an alias oftypes
?I've moved this issue here from raml2html/raml2obj#42
The text was updated successfully, but these errors were encountered: