Skip to content

base64 type properties fail validation for lack of exampleΒ #132

Open
@shoffmeister

Description

@shoffmeister

Whenever an object has a property of base64 (i.e. type: string, format: byte) validation will fail the error message

*ERROR* in Model '...', property 'content', field 'example' -> This field should be present and not empty

although the field example is present. This is really tied to the property being of type base64; remove the "format: byte" and the specification document will pass validation.

To reproduce, download the attached Zip file y.zip which contains two files minimally reproducing:

  • pom.xml
  • broken-validation-base64-response.yaml

Run mvn verify

//exp: passes validation
//act: ERROR in Model

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions