Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 2.27 KB

CHANGELOG.md

File metadata and controls

60 lines (46 loc) · 2.27 KB

0.7.5

  • Fix RBIs for new version of Sorbet.

0.7.4

  • Strip type annotations during gem build using Curdle.

0.7.3

  • Add feature to limit the length of filenames to 100 characters.
    • Rubygems has a hard limit on the number of characters allowed in a filename, which I assume is actually a requirement of whatever archive format it uses.

0.7.2

  • Use tapioca for type annotations.
  • Fix a couple of type annotations.

0.7.1

  • Remove dependency on the defunct sorbet-runtime-stub gem.

0.7.0

  • Upgrade to v1.22 of the Kubernetes schema.
  • Add Sorbet type signatures to all DSL objects.
  • Add the missing Apiextensions::V1::JSON class (thanks Sorbet).
  • Handle so-called "inline" refs in schema definitions.
    • The JSON schema format can contain refs that point to other files, which is what the Ref class handles.
    • However, schemas can also contain objects described entirely within other objects. Both objects live in the same file. The InlineRef class was created to represent objects defined inside the same file as their parent.
  • Allow certain special fields to be blank.
    • Necessary to fully support cert-manager.

0.6.1

  • Fix additional naming discrepancy in autoload manifests causing "API" to become "Api."

0.6.0

  • Improve path and namespace handling in generator.

0.5.1

  • Support Ruby 2.7
    • Stop using the RubyToken class from irb, which doesn't exist anymore.
  • Fix bug causing NoMethodErrors if the type field contains a single string and not an array.

0.5.0

  • Recursively validate.
  • Add README.

0.4.0

  • Add validations.
    • You can now call #valid? and #validate methods on DSL objects.
  • Fixed several bad inflections causing Ruby keywords to appear in unexpected places, namely in #serialize methods.
  • Prevent JSON schema "$" variables (eg. "$ref") from being added as fields.

0.3.0

  • Introduce the key_value_field method to simplify creating key/value fields.
  • Add #merge and #merge! methods to anything that includes or extends ValueFields.

0.2.0

  • Treat bare array fields as value fields.
    • When specifying array_field(:foo), you would get a doubly-nested array if you filled in the value via a block, eg: foo { [1, 2, 3] }.
    • This fix means you can now write foo [1, 2, 3] for a "bare" array.

0.1.0

  • Birthday!