- Fixed a bug where optional properties were not excluded from the required list.
- Run JSON Schema validations using ActiveModel's validations.
- Added ActiveModel::API functionality to EasyTalk::Model module. That means you get all the benefits of ActiveModel::API including attribute assignment, introspections, validations, translation (i18n) and more. See https://api.rubyonrails.org/classes/ActiveModel/API.html for more information.
- Accept
:optional
key as constraint which excludes property from required node. - Spec fixes
- Added the ability to describe an object schema withing the define_schema block. Example:
...
property :email, :object do
property :address, :string
property :verified, :boolean
end
- mostly refactoring without changes to the public API.
- general cleanup and refactoring.
- model instance takes a hash and converts it to attribute methods.
- Added helper method for generating an openai function.
- Bumped activesupport gem version.
- Bumped json-schema gem version.
- Added json validation.
- Removed pry-byebug.
- Initial release