Skip to content

openapi-3#9

Merged
disruptek merged 14 commits intomasterfrom
openapi3
Apr 17, 2026
Merged

openapi-3#9
disruptek merged 14 commits intomasterfrom
openapi3

Conversation

@disruptek
Copy link
Copy Markdown
Owner

No description provided.

Detect v3 via the "openapi" field, parse servers for host/basePath/schemes,
handle schema-based parameters, and convert requestBody to synthetic body
parameters. Existing v2 behavior is unchanged.
test.nim: add v2 schema parsing, guessType for inline params, ref
resolution, and a negative test for malformed specs.

test3.nim: add negative test for malformed v3 spec and server URL
with port parsing.
- schema2: Operation tags is [string] not [Tag] (bug)
- schema2: SecurityScheme type is the only required field;
  the rest are conditional on the type value (bug)
- schema2: remove duplicate multipleOf in SchemaObject
- schema2: Jstring -> JString typo
- schema3: Discriminator mapping is a map, not a string
- spec: remove duplicate block/break in isKeyword
- codegen: remove dead Generator fields types/makeTypes
- codegen: fix "may will require" typo
- extract shared <~ templates into schemadsl.nim
@disruptek disruptek added the enhancement New feature or request label Apr 17, 2026
- genSym: drop named `ident=` parameter to avoid ambiguity with
  the deprecated two-arg template
- newPar: replace with nnkTupleConstr (newPar is removed)
- generate template: add explicit import of openapi/codegen so
  the macro body can resolve newGenerator and friends
- bump to 5.0.0 for nim 2.0+ requirement
- CI: nim 2.0 + devel, drop 1.6, switch to jiro4989/setup-nim-action
- bundle petstore2.json so tests don't depend on untracked subdir
- fix nimble test task to reference correct filenames
- --gc:arc -> --mm:arc for nim 2.0
- replace all foreach loops with standard for loops
- remove foreach dependency from nimble
- CI: use balls test runner, nim 2.0 + devel
@disruptek disruptek merged commit eb2a561 into master Apr 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant