-
Feature
-
Resolution: Done
-
Minor
-
2.2.5.GA
-
False
-
None
-
False
-
---
For the code with following validation constraint
~~~
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
public class Fruit {
@NotNull
@Size(min = 1, max = 4)
@Pattern(regexp = "^[A-Za-z]+$")
public String name;
~~~
From SwaggerUI-> OpenAPI, the document does not include the Pattern validation
components:
schemas:
Fruit:
required:
- name
type: object
properties:
name:
maxLength: 4
minLength: 1
type: string
nullable: false
description:
type: string