Skip to content

Support top-level refs; support uniqueItems when items contains a ref

Compare
Choose a tag to compare
@ianhoffman ianhoffman released this 30 Mar 17:28
· 46 commits to master since this release
99b251b
  • Support top-level refs (e.g., schemas declared as {"$ref": "..."}. For these schemas, we'll ensure the referenced schema has a generated validator and type, but we won't generate any new code.
  • Correctly handle the case where an array specifies uniqueItems and has an item which is a $ref.
  • Breaking change: Codegen::build() no longer returns a file. Call getFile() on the Codegen object to get the generated file.