foobara-json-schema-generator 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ada8b771c3996667179a91f625b5bf8855b1b11f9d99dcfdf29405b9da00c29
4
- data.tar.gz: d9155a94bcca4a28915ea69f4cae3f1d8bda4449b0f7537f1c851df6f446c887
3
+ metadata.gz: fe982c9eb854665188f26a61de404de190cc917fd91b413c338d428d083426e3
4
+ data.tar.gz: 042aff0322c960a4ba71c001bbb1bd8d2a12873329f2348e261d5d3d6f12e09d
5
5
  SHA512:
6
- metadata.gz: 961ba1ff36e550f777555be5192b1e59cfc00e58ffab897c5f4301795bc09eb0dbaf0f2bfa5c7363c6318cc54ae7cbb208dedb32e90c0863ad8c480fd8b45ad6
7
- data.tar.gz: 807fefe285419e4a1361bf701a8849c497804e17d2de012af5ab57a9e5d55c8a57f469fe06fdf5d56ed1ce68890d3f1a473e89dac5fb5a2d38390268129c335d
6
+ metadata.gz: 30df660d339042da76dbcd1d3a1b8d698351a770c180a6d9264eff7e228f48d58a7ab08f4a61592cbeeaa901a7f15c0a71c33b1276c26a984eec01ecdcd9f4c2
7
+ data.tar.gz: b48856f56dec9e6db8623149cf627ce8bc03359a7834ee014eae125cbdd9cafc4ae83d2ec42e9ff23417d1079d5e0c127257e61c96edaa25112733ac0676f14f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.1.1] - 2026-09-11
2
+
3
+ - Handle removed JSON.fast_generate
4
+
1
5
  ## [1.1.0] - 2025-08-22
2
6
 
3
7
  - Handle Foobara 0.1.0 declaration changes
@@ -4,7 +4,7 @@ module Foobara
4
4
  def to_json_schema(type, association_depth: Foobara::AssociationDepth::ATOM)
5
5
  poro = to_json_schema_structure(type, association_depth:)
6
6
 
7
- JSON.fast_generate(poro)
7
+ JSON.generate(poro)
8
8
  end
9
9
 
10
10
  def to_json_schema_structure(type, association_depth: Foobara::AssociationDepth::ATOM)
@@ -105,16 +105,16 @@ module Foobara
105
105
  { type: "number" }
106
106
  elsif type.extends?(BuiltinTypes[:associative_array])
107
107
  # TODO: implement this
108
- # :nocov:
108
+ # simplecov:disable
109
109
  raise ArgumentError, "Associative array not yet supported"
110
- # :nocov:
110
+ # simplecov:enable
111
111
  elsif type.extends?(BuiltinTypes[:duck])
112
112
  {}
113
113
  else
114
- # :nocov:
114
+ # simplecov:disable
115
115
  # This should be unreachable because every type extends duck...
116
116
  raise ArgumentError, "Unable to convert #{declaration_data} to a JSON schema type"
117
- # :nocov:
117
+ # simplecov:enable
118
118
  end
119
119
 
120
120
  unless type.primitive?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-json-schema-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.6.9
67
+ rubygems_version: 4.0.16
68
68
  specification_version: 4
69
69
  summary: Takes a Foobara type and converts it to a json schema
70
70
  test_files: []