Server : LiteSpeed System : Linux in-mum-web1949.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : u595547767 ( 595547767) PHP Version : 7.4.33 Disable Function : NONE Directory : /opt/go/pkg/mod/github.com/go-openapi/validate@v0.24.0/fixtures/validation/ |
---
swagger: '2.0'
info:
title: 'fixture for issue #581'
version: '1.0'
description: |
test verification of overflow on min/max boundary
reproduces the initial reported case,with schema and $refs
produces:
- application/json
paths:
/fixture:
get:
operationId: op1
parameters:
- name: myid
in: query
schema:
$ref: '#/definitions/myId'
responses:
200:
description: 'response exercising integer boundaries'
schema:
$ref: '#/definitions/someIds'
definitions:
myId:
type: object
properties:
uint8:
type: integer
minimum: 0
maximum: 255
# Error: default does not validate against boundaries
default: 256
int64:
type: integer
minimum: -9223372036854775808
# Error: maximum is not an int64
maximum: 9223372036854775807000
uint64:
type: integer
minimum: -9223372036854775807000
maximum: 18446744073709551615
uint64-wrong:
type: integer
minimum: 0
maximum: 18446744073709551616
someIds:
type: object
properties:
smallId:
type: integer
minimum: 0
maximum: 12