Skip to content

Fix validation of required properties not defined in the properties section of a schema

Compare
Choose a tag to compare
@wol-soft wol-soft released this 08 Oct 09:55
· 116 commits to master since this release

Previously to this release a schema like the following won't validate the property bar:

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

Now the property will be validated and added to the interface of the generated class. Generated interface:

getFoo(): string;
setFoo(string $value): self;
getBar(): mixed;
setBar(mixed $value): self;