cancel
Showing results for 
Search instead for 
Did you mean: 

Array null values

Highlighted
Member

Array null values

Hello,

 

Is it possible to define an array that can not contain null? 

I'm compiling it to Java with Open API 3.0

 

f.e for this example

A:
type: array
minItems: 1
items:
$ref: "#/components/schemas/B"
B:
type: string
pattern: ^[a-z]+$

 I consider [null] or ["abc",null] invalid

 

Thanks in advance

Tags (2)
New Here?
Join us and watch the welcome video:
Watch the new Interview