Skip to content

Openapi - #9

Merged
kostiushkin merged 3 commits into
masterfrom
openapi
Oct 2, 2026
Merged

kostiushkin merged 3 commits into
masterfrom
openapi

Conversation

@kostiushkin

Copy link
Copy Markdown
Member

Summary

  • Merge master (1.0.0) into openapi and finish the OpenAPI scaffold.
  • Export: liver path schemas → OpenAPI 3 documents (generate / generate_schema), OTP json instead of jsx, LIVR + erlang_standard rule mapping.
  • Import: OpenAPI Schema Object → erlang_standard field schema (from_openapi_schema) for liver:validate/2.
  • Docs (doc/openapi.md, README, CHANGELOG) and CT suite openapi_schema_SUITE.

Scope / limitations

MVP only: no $ref / allOf / oneOf / document-level paths&methods; nullable ignored; single-sided min/max skipped. Unsupported constructs return {error, {unsupported, Reason}}.

Test plan

  • make app
  • make tests (including openapi_schema_SUITE: export LIVR + standard, import ok/error, unsupported $ref)
  • Smoke: generate_schema/2 with output => json and decode with json:decode/1
  • Smoke: from_openapi_schema/1 on a small object schema, then liver:validate/2

@kostiushkin
kostiushkin merged commit e62d1e1 into master Oct 2, 2026
14 of 22 checks passed
@kostiushkin
kostiushkin deleted the openapi branch October 2, 2026 22:38
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 84.064% (-11.3%) from 95.333% — openapi into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants