Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

1.1.48 patch release introduced a breaking change #862

@lbeschastny

Description

@lbeschastny

In 1.1.48 you've updated raml-definition-system package, which resulted in a breaking change.

Before 1.1.48 the following Draft 4 schema was considered valid:

{
	"type": "object",
	"properties": {
		"example": {
			"type": "string"
		}
	},
	"required": ["example"]
}

But since 1.1.48 all schemas without $schema property are assumed to be in Draft 3, which result in the following parser error when used with rejectOnErrors: true:

{
    "code": "REQUIRED_MUST_BE_BOOLEAN_IN_DRAFT_3",
    "message": "Draft 3 schema must have boolean as 'required' property value"
}

Related to raml-org/raml-typesystem#113

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions