Previously, when generating JSON output for references, if a reference of type journal had no pages attribute, it was converted to type unknown, because it would not have been considered valid as a reference of type journal.
Change to the the parser here keeps them as references of type journal and no longer converts them to unknown if pages is missing.
Re issue https://github.com/elifesciences/issues/issues/6433
Valid in
api-raml
version1.1.0
https://github.com/elifesciences/api-raml/releases/tag/1.1.0Previously, when generating JSON output for references, if a reference of type
journal
had nopages
attribute, it was converted to typeunknown
, because it would not have been considered valid as a reference of typejournal
.Change to the the parser here keeps them as references of type
journal
and no longer converts them tounknown
ifpages
is missing.Added another test scenario for this edge case.
Bumped library version to
0.5.0
as a result.