原书出处
Designing APIs with Swagger and OpenAPI
19 Improving input validation with advanced JSON Schema 19.2 Supported validations
As an example, the following listing shows a schema with an integer field named my_number, which can contain anything between 2 and 20 (but not these exact numbers) that is a multiple of 2 (in other words, an even number).
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch19.htm
EPUB SHA-256:b429095d92e98a7ef17df001e65a97cc8b58fbe9dde8dd4f4731c613ff762c25