Skip to content

optional/content.json tests as assertions #363

Closed
@Maldris

Description

@Maldris

Hi, I'm just wanting to check the intent here.

The tests in the draft2019-09/optional/content.json set treat the contentMediaType and other keywords as assertions, when their definition in the current draft states in section 8.1, paragraph 2:

They do not function as validation assertions; a malformed string-encoded document MUST NOT cause the containing instance to be considered invalid.

So I wanted to check that it was intended that these tests don't follow the spec's behaviour?

My intent for handling them in my implementation/use case is to treat them like format and have their behaviour be dependent on configuration/$vocabulary value, so this wont be a problem once fully implemented, but I felt it best to point out the inconsistency as I noticed it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions