Validator doesn't report properties that are in the required list but not defined
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Reproduce the supplied OpenAPI 3.0.3 example and inspect how required properties are checked when they are absent from properties. Done means the validator reports every undefined required property, including problem-type, order-trees, and site-location, rather than only event-photo.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Following specification causes validator to report only the event-photo property
Required list has not defined properties: ['event-photo']
whereas I would expect similar messages for the problem-type, order-trees and site-location properties.
openapi: 3.0.3
info:
title: Protect Earth API
version: 0.3.0
paths:
/events:
get:
operationId: get-events
summary: Get Events
description: Get a list of all the events
tags:
- Event
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Generic_Problem'
/orders:
post:
operationId: post-orders
summary: Create Order
tags:
- Order
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
responses:
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Event'
components:
schemas:
Generic_Problem:
title: Problem
type: object
required:
- problem-type
- title
properties:
title:
type: string
status:
type: integer
Event:
title: Event
type: object
required:
- description
- event-photo
properties:
id:
type: string
summary:
type: string
description:
type: string
Order:
title: Order
type: object
required:
- site
- order-trees
properties:
id:
type: string
format: uuid
readOnly: true
site:
$ref: '#/components/schemas/Site'
Site:
title: Site
type: object
required:
- url
- site-location
properties:
id:
type: string
format: uuid
url:
type: string
format: url
- Linguagem predominante
- Python
- Estrelas
- 409
- Forks
- 73
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-openapi/openapi-spec-validator
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 30/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
python-openapi/openapi-spec-validator#400 · 1 comentário ·
-
kind/bug/confirmed
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
python-openapi/openapi-spec-validator#373 · 1 comentário ·
Todas as issues de python-openapi/openapi-spec-validator
Issues semelhantes
-
货币战争手改优先级配置缺少列表元素类型校验(P3) Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Abertaarea: ci bug perceived difficulty: 3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-connect#1057 ·