Skip to content

Releases: schema-craft/schema-tools

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Sep 12:55

What's Changed

  • feat(validate): support per-version OpenAPI and JSON Schema draft detection by @kudlatyamroth in #146

Full Changelog: v1.0.7...v1.1.0

v1.0.8

Choose a tag to compare

@github-actions github-actions released this 27 Aug 15:10

What's Changed

  • build: optimize runtime dependencies with multi-stage build by @kudlatyamroth in #143
  • fix(codegen): prevent discriminator variant merging with original model by @kudlatyamroth in #144

Full Changelog: v1.0.7...v1.0.8

v1.0.7

Choose a tag to compare

@github-actions github-actions released this 20 Aug 08:14

Fix

  • repair workflow permissions and deprecated actions
  • codegen: make generated model names independent of component order
  • commitizen now supports cargo version provider

Full Changelog: v1.0.4...v1.0.7

v1.0.4

Choose a tag to compare

@github-actions github-actions released this 17 Aug 10:55

Fix

  • don't panic when renaming nullable map/any models with title

v1.0.3

Choose a tag to compare

@github-actions github-actions released this 17 Aug 09:21

Fix

  • enable tera-contrib filters and functions
    • b64_decode => base64::b64_decode
    • b64_encode => base64::b64_encode
    • now => dates::now
    • date => dates::date
    • is_before => dates::is_before
    • is_after => dates::is_after
    • filesize_format => filesize_format::filesize_format
    • format => format::format
    • json_encode => json::json_encode
    • get_random => rand::get_random
    • shuffle => rand::shuffle
    • spaceless => regex::spaceless
    • striptags => regex::striptags
    • matching => regex::Matching::default()
    • regex_replace => regex::RegexReplace::default()
    • slug => slug::slug
    • urlencode => urlencode::urlencode
    • urlencode_strict => urlencode::urlencode_strict

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 07 Aug 22:31

Fix

  • typos and update links in README
  • preserve original operationId for --only-endpoint matching
  • restore model deduplication broken since 0.24.0

v1.0.1

Choose a tag to compare

@github-actions github-actions released this 07 Aug 19:35

Fix

  • preserve nullability for oneOf [null, $ref] components with merge_similar_models

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Aug 17:31

BREAKING CHANGE

  • the git2 feature flag is renamed to git. The git discovery backend now uses the pure-Rust gix crate with reqwest/rustls HTTPS transport, removing the OpenSSL/libgit2 dependency.
  • custom Tera filters/functions were rewritten for tera 2.x API. Templates probably need changes.

Feat

  • docs about template and project architecture
  • migrate git backend from git2 to gitoxide (gix) and use rustls
  • update tera, jsonschema, digest

v0.24.0

Choose a tag to compare

@github-actions github-actions released this 29 Jul 19:21

Add options for codegen:

--skip-endpoint <operation-id> - skip an endpoint by operationId. Can be repeated. Models referenced only by skipped endpoints are removed from the output.
--only-endpoint <operation-id> - keep only the endpoints with given operationId. Can be repeated. All other endpoints and their unique models are removed.
--skip-unused-models - remove models that are not referenced by any kept endpoint.
--keep-schema <path> - keep the original JSON schema in selected nodes so it is available in templates. Can be repeated.
--merge-similar-models - merge models with identical structure ignoring title and description.

v0.23.2

Choose a tag to compare

@github-actions github-actions released this 29 Jul 13:22
chore: bump version 0.23.1 → 0.23.2 [skip-ci]