README.md in json-schema-subset-dsl-1.1.0 vs README.md in json-schema-subset-dsl-1.2.0
- old
+ new
@@ -24,11 +24,15 @@
$ gem install json-schema-subset-dsl
## Usage
```ruby
-dsl = Json::Schema::Subset::DSL.new do
+options = {
+ reference_name: ->(name) { name.sub(/Serializer$/, ""),
+}
+
+dsl = Json::Schema::Subset::DSL.new(options) do
title! "Example"
id :integer
name :string, minLength: 1, optional: true
items :array, optional: true do
end
@@ -40,10 +44,10 @@
description :string
params :array do
ref! "#/components/Param"
end
opt_params :array do
- cref! "OptParam"
+ cref! "OptParamSerializer"
end
uuid :ref, "#/UUID", optional: true
end
end