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/ |
# This spec should be correctly detected as invalid
swagger: '2.0'
info:
title: issue-1238
version: 0.0.1
license:
name: MIT
host: localhost:8081
basePath: /api/v1
schemes:
- http
consumes:
- application/json
produces:
- application/json
paths:
'/servers/{server_id}/zones':
get:
operationId: listZones
tags:
- zones
parameters:
- name: server_id
in: path
required: true
type: string
responses:
'200':
description: An array of Zones
schema:
$ref: '#/definitions/Zones'
'/servers/{server_id}/zones/{zone_id}':
get:
operationId: listZone
tags:
- zones
parameters:
- name: server_id
in: path
required: true
type: string
- name: zone_id
type: string
in: path
required: true
responses:
'200':
description: A Zone
schema:
$ref: '#/definitions/Zone'
definitions:
Zones:
type: array
items:
$ref: '#/definitions/Zone'
Zone:
type: object
properties:
name:
type: string
RR:
$ref: '#/definitions/RRSets'
RRSets:
# Declaring items for an object should be correctly assessed as invalid and not trigger a panic (issue#1238)
type: object
items:
$ref: '#/definitions/RRSet'
RRSet:
properties:
name:
type: string