shale 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +5 -3
- data/lib/shale/schema/json/schema.rb +1 -1
- data/lib/shale/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36678c1f4afd6e0cf2d6a9a9e4b5becebf11e76404cb50dba7dc5269b5ca42cc
|
4
|
+
data.tar.gz: 51c6c94abafe1767c579c270e3c3cb4da2ca79a2a29a9d28ea6bfe09bc4b53fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea21dff00b6ea2663d20f9f377140250f78c29214a93f226047fe29d47680ae526652010ae268e4cf694ca1877cd8d19bfe8f0bbd767fa871fa80afaefee1c83
|
7
|
+
data.tar.gz: 414d45b7bcd2477bc276eee17c598efba40350e0234c32f783c73217bee65ae4260d07e8a7bcfc7f48e1f76c9af4852de1c1c109c5b807e99a945305e2de6286
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -613,16 +613,18 @@ Shale.xml_adapter = Shale::Adapter::Ox
|
|
613
613
|
|
614
614
|
To generate JSON Schema from you Shale data model use:
|
615
615
|
|
616
|
+
:warning: Shale only supports **[Draft 2020-12](https://json-schema.org/draft/2020-12/schema)** JSON Schema
|
617
|
+
|
616
618
|
```ruby
|
617
619
|
require 'shale/schema'
|
618
620
|
|
619
|
-
Shale::Schema.to_json(Person, id: '
|
621
|
+
Shale::Schema.to_json(Person, id: 'http://foo.bar/schema/person', description: 'My description', pretty: true)
|
620
622
|
|
621
623
|
# =>
|
622
624
|
#
|
623
625
|
# {
|
624
626
|
# "$schema": "https://json-schema.org/draft/2020-12/schema",
|
625
|
-
# "id": "
|
627
|
+
# "$id": "http://foo.bar/schema/person",
|
626
628
|
# "description": "My description",
|
627
629
|
# "$ref": "#/$defs/Person",
|
628
630
|
# "$defs": {
|
@@ -685,7 +687,7 @@ Shale::Schema::JSON.register_json_type(MyEmailType, MyEmailJSONType)
|
|
685
687
|
|
686
688
|
### Generating XML Schema
|
687
689
|
|
688
|
-
To generate XML Schema from
|
690
|
+
To generate XML Schema from your Shale data model use:
|
689
691
|
|
690
692
|
```ruby
|
691
693
|
require 'shale/schema'
|
data/lib/shale/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Giszczak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby object mapper and serializer for XML, JSON and YAML.
|
14
14
|
email:
|