foobara-json-schema-generator 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/json_schema_generator.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ce4af9935431fb381b2c40fdf50b84ef6163257cbc6896b9cd66db4fe61f071
|
4
|
+
data.tar.gz: 02e6309f63480467b91b6fb1f1c97dc68f6fc37da8f948deeb23cdce843af5be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3186b0c2dbef2f5da7c1558f65ce385bc33fb30152bd2cc20a2c302279687b0c476718cbd7b53f522e79cc441cf1afa95c0f9ec1d0ab28b67ff3b5b159de797a
|
7
|
+
data.tar.gz: 46cfc78e168affa876d9826f0c7de06f074abcfd013664b43c57a9d87f0fd97891f65072eee81f53e72c77d2690d6302c43fed1766955c4626512df250472362
|
data/CHANGELOG.md
CHANGED
@@ -101,9 +101,9 @@ module Foobara
|
|
101
101
|
type_hash[:enum] = one_of
|
102
102
|
end
|
103
103
|
|
104
|
-
|
104
|
+
allow_nil = DataPath.value_at(:allow_nil, declaration_data)
|
105
105
|
|
106
|
-
if
|
106
|
+
if allow_nil && type_hash.key?(:type)
|
107
107
|
type_hash[:type] = [type_hash[:type], "null"]
|
108
108
|
end
|
109
109
|
|
metadata
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-json-schema-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: foobara
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version:
|
18
|
+
version: 0.0.92
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
|
-
- - "
|
23
|
+
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: 0.0.92
|
26
26
|
email:
|
27
27
|
- azimux@gmail.com
|
28
28
|
executables: []
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
|
-
rubygems_version: 3.6.
|
62
|
+
rubygems_version: 3.6.6
|
63
63
|
specification_version: 4
|
64
64
|
summary: Takes a Foobara type and converts it to a json schema
|
65
65
|
test_files: []
|