You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set a field/method's "description" as per @ApiModelProperty(value = ...)
but properties are annotated like this: @ApiModelProperty(notes = "Email of the user", name = "email", value = "[email protected]")
notes element of the annotation holds a description,
and value an example for the range of that property.
the current implementation creates out of: @ApiModelProperty(notes = "Email of the user", name = "email", value = "[email protected]")
the following schema: .. "email" : { "type" : "string", "description" : "[email protected]", "pattern" : ".{0,0}|\\w+([-]\\w+)*( (\\w)+)+" } ..
so the value is mapped to description instead of using the notes field.
The text was updated successfully, but these errors were encountered:
https://github.com/victools/jsonschema-generator/wiki#41-features
the page states:
but properties are annotated like this:
@ApiModelProperty(notes = "Email of the user", name = "email", value = "[email protected]")
notes element of the annotation holds a description,
and value an example for the range of that property.
the current implementation creates out of:
@ApiModelProperty(notes = "Email of the user", name = "email", value = "[email protected]")
the following schema:
.. "email" : { "type" : "string", "description" : "[email protected]", "pattern" : ".{0,0}|\\w+([-]\\w+)*( (\\w)+)+" } ..
so the value is mapped to description instead of using the notes field.
The text was updated successfully, but these errors were encountered: