Skip to content

JSON Marshalling Of Contains #126

@RichardKnop

Description

@RichardKnop

When I unmarshall a schema with contains keyword into instance of *jsonschema.Schema, for example:

{
  "contains": {
    "const": "foobar"
  },
  "type": "array"
}

And then marshall the schema instance back into JSON, I expect:

{
  "contains": {
    "const": "foobar"
  },
  "type": "array"
}

What I actually get is:

{
  "contains": {},
  "type": "array"
}

Here is a fix: #125

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