skooma 0.3.5 → 0.3.6

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.
@@ -0,0 +1,25 @@
1
+ {
2
+ "$id": "https://spec.openapis.org/oas/3.1/schema-base/2025-02-13",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "description": "The description of OpenAPI v3.1.x Documents using the OpenAPI JSON Schema dialect",
5
+ "$ref": "https://spec.openapis.org/oas/3.1/schema/2025-02-13",
6
+ "properties": {
7
+ "jsonSchemaDialect": {
8
+ "$ref": "#/$defs/dialect"
9
+ }
10
+ },
11
+ "$defs": {
12
+ "dialect": {
13
+ "const": "https://spec.openapis.org/oas/3.1/dialect/2024-11-10"
14
+ },
15
+ "schema": {
16
+ "$dynamicAnchor": "meta",
17
+ "$ref": "https://spec.openapis.org/oas/3.1/dialect/2024-11-10",
18
+ "properties": {
19
+ "$schema": {
20
+ "$ref": "#/$defs/dialect"
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -9,12 +9,12 @@ module Skooma
9
9
  "schemas" => JSONSkooma::JSONSchema,
10
10
  "responses" => Response,
11
11
  "parameters" => Parameter,
12
- # "examples" => Example,
12
+ "examples" => JSONSkooma::JSONNode,
13
13
  "requestBodies" => RequestBody,
14
14
  "headers" => Header,
15
15
  "securitySchemes" => JSONSkooma::JSONNode,
16
16
  "links" => JSONSkooma::JSONNode,
17
- # "callbacks" => Callback,
17
+ "callbacks" => JSONSkooma::JSONNode,
18
18
  "pathItems" => PathItem
19
19
  }
20
20
 
@@ -12,7 +12,12 @@ module Skooma
12
12
  raise Error, "Only OpenAPI version 3.1.x is supported, got #{value}"
13
13
  end
14
14
 
15
- parent_schema.metaschema_uri = "https://spec.openapis.org/oas/3.1/schema-base/2022-10-07"
15
+ parent_schema.metaschema_uri = if value.to_s.start_with? "3.1.0"
16
+ "https://spec.openapis.org/oas/3.1/schema-base/2022-10-07"
17
+ else
18
+ "https://spec.openapis.org/oas/3.1/schema-base/2025-02-13"
19
+ end
20
+
16
21
  parent_schema.json_schema_dialect_uri = "https://spec.openapis.org/oas/3.1/dialect/base"
17
22
 
18
23
  super
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Skooma
4
- VERSION = "0.3.5"
4
+ VERSION = "0.3.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skooma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
@@ -47,10 +47,14 @@ files:
47
47
  - CHANGELOG.md
48
48
  - LICENSE.txt
49
49
  - README.md
50
+ - data/oas-3.1/dialect/2024-11-10.json
50
51
  - data/oas-3.1/dialect/base.json
52
+ - data/oas-3.1/meta/2024-11-10.json
51
53
  - data/oas-3.1/meta/base.json
52
54
  - data/oas-3.1/schema-base/2022-10-07.json
55
+ - data/oas-3.1/schema-base/2025-02-13.json
53
56
  - data/oas-3.1/schema/2022-10-07.json
57
+ - data/oas-3.1/schema/2025-02-13.json
54
58
  - lib/skooma.rb
55
59
  - lib/skooma/body_parsers.rb
56
60
  - lib/skooma/coverage.rb
@@ -166,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
170
  - !ruby/object:Gem::Version
167
171
  version: '0'
168
172
  requirements: []
169
- rubygems_version: 3.6.7
173
+ rubygems_version: 3.6.9
170
174
  specification_version: 4
171
175
  summary: Validate API implementations against OpenAPI documents.
172
176
  test_files: []