Refresh openapi.yaml and remove spec workarounds fixed upstream
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- git, openapi, swift
- Área
- build-system, tooling
Línea de trabajo
Read Makefile, Scripts/prepare_openapi.py, and the three named workaround scripts, then run make generate to compare regenerated output. Remove the scripts and calls only if the output is unchanged; update the Makefile comment with fork commit 87d1f6f. Run swift package diagnose-api-breaking-changes on the regeneration diff and follow CONTRIBUTING.md under “Generated types” for any breaks.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The upstream openai-openapi spec has fixed three of the problems that Scripts/prepare_openapi.py works around. Against a fresh download of upstream openapi.yaml, each of these scripts is now a no-op:
| Script | Upstream state |
|---|---|
Scripts/fix_rounded_int64_bounds.py |
Exact bounds (-9223372036854775808 / 9223372036854775807), no rounded values left |
Scripts/fix_boolean_exclusive_minimum.py |
exclusiveMinimum is numeric everywhere, no boolean form left |
Scripts/fix_recursive_reference.py |
No $recursiveRef left; CompoundFilter now references itself with a plain $ref |
Tasks
- Run
make generateto refreshopenapi.yamland regenerateComponents.swift - Remove the three scripts above and their calls in
Scripts/prepare_openapi.py, after confirming the regenerated output is unchanged without them - Run
swift package diagnose-api-breaking-changeson the regeneration diff and handle any breaks as described in CONTRIBUTING.md (Generated types) - Document fork commit
87d1f6f("Unwrap nullable anyOf discriminator properties in oneOf switch cases") in theMakefilecomment, which currently lists only the other three required generator changes
Workarounds that are still needed
Checked at the same time, for reference:
- Generator fork, nullable
anyOf: [T, {type: null}]: not supported upstream (apple/swift-openapi-generator#928, #931 and #933 closed unmerged; #831 open) - Generator fork, discriminators without mapping: openai/openai-openapi#542 still open; 138 unmapped discriminators have runtime values that differ from schema names
- Generator fork, colliding discriminator values:
messagestill collides inItem,ItemResource,RealtimeConversationItem,BetaItemandBetaItemResource remove_unsupported_webhooks.py: the spec still has top-levelwebhooks; generator fix apple/swift-openapi-generator#734 is still openremove_required_properties.py: all six entries are still required in the spec without being declared as properties- Typealias stripping in
extract_components.py: still triggered (100 lines stripped on the last run)
- Lenguaje dominante
- Swift
- Estrellas
- 2.9k
- Forks
- 519
- Merge medio
- 4 d 9 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MacPaw/OpenAI
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Enable batch promptsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MacPaw/OpenAI#73 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
Check the HTTP status code for JSON responsesPosiblemente ocupada @mvanhorn la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
MacPaw/OpenAI#469 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 3 días
-
Add Batch API supportAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 3 días
Todos los issues de MacPaw/OpenAI
Issues similares
-
type: cleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
googleapis/google-cloud-swift#1477 ·
Los mantenedores suelen responder en 1 día
-
🐛 Bug Report: Console `/join` shows an endless spinner for invited users who are not signed inAbiertoproduct / auth product / console product / databases product / messaging product / self-hosted product / sites product / storage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
P1 status: first-line-handled status: needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
a2ui-project/a2ui#3282 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
binding:web core docs p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
RunanywhereAI/runanywhere-sdks#1123 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Countly/countly-sdk-ios#485 ·
Los mantenedores suelen responder en 1 día