openapi_parser 0.12.1 → 0.15.0
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/.github/workflows/ci.yaml +17 -0
- data/CHANGELOG.md +22 -0
- data/README.md +1 -3
- data/TAGS +1352 -0
- data/lib/openapi_parser/concerns/findable.rb +9 -8
- data/lib/openapi_parser/concerns/parameter_validatable.rb +7 -1
- data/lib/openapi_parser/errors.rb +27 -16
- data/lib/openapi_parser/path_item_finder.rb +1 -1
- data/lib/openapi_parser/request_operation.rb +0 -1
- data/lib/openapi_parser/schema_validator.rb +6 -1
- data/lib/openapi_parser/schema_validators/all_of_validator.rb +7 -2
- data/lib/openapi_parser/schema_validators/base.rb +6 -2
- data/lib/openapi_parser/schema_validators/boolean_validator.rb +5 -0
- data/lib/openapi_parser/schema_validators/float_validator.rb +3 -3
- data/lib/openapi_parser/schema_validators/integer_validator.rb +3 -5
- data/lib/openapi_parser/schema_validators/object_validator.rb +11 -1
- data/lib/openapi_parser/schema_validators/string_validator.rb +15 -0
- data/lib/openapi_parser/schema_validators/unspecified_type_validator.rb +8 -0
- data/lib/openapi_parser/schemas/path_item.rb +4 -2
- data/lib/openapi_parser/version.rb +1 -1
- data/lib/openapi_parser.rb +5 -0
- metadata +9 -7
- data/.travis.yml +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9ac4364517c2d16ce331542a85f880be4d4be5f28f8e408281aff889867fada
|
4
|
+
data.tar.gz: 2bc1be294fb7948406f8fb93c1f7ad44a3ecc2c37186a0900a97d4f1d6deed99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e03485a37a79385aa501383e787d8745cc4b29027bcd15c96fac303aa7ed5e7808061ca6fdd82d122c09efe94441caa079b95c747bda2b2845969a85599b352
|
7
|
+
data.tar.gz: 5156605dc0d5e3d6864fdbdb19a94881892f21b203071daee29d35e0f9a8c76499dd70e549899d733e86ffa1e0753ee13322238a394009e91f01775e4202337d
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: ci
|
2
|
+
on: [push]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
os: [ubuntu-latest, macos-latest]
|
9
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', head]
|
10
|
+
runs-on: ${{ matrix.os }}
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: ${{ matrix.ruby }}
|
16
|
+
bundler-cache: true
|
17
|
+
- run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
+
## 0.15.0 (2021-09-27)
|
4
|
+
### Added
|
5
|
+
* support: relative file path escape. #117
|
6
|
+
|
7
|
+
## 0.14.1 (2021-07-9)
|
8
|
+
### Fixed
|
9
|
+
* Fix bug for using path parameter and coerce option #115
|
10
|
+
|
11
|
+
## 0.14.0 (2021-05-24)
|
12
|
+
|
13
|
+
### Added
|
14
|
+
* Add basic polymorphism handling #103
|
15
|
+
* Support empty schema as any type #109
|
16
|
+
* Add date format validation for string #102
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
* Fix anyOf coercion to float and integer when value is a non-string type #110
|
20
|
+
|
21
|
+
## 0.13.0 (2021-05-01)
|
22
|
+
* Fix a problem with remote reference to path items which have path parameters #95
|
23
|
+
* Support enum for booleans. #104
|
24
|
+
|
3
25
|
## 0.12.1 (2020-08-27)
|
4
26
|
* Use CGI.unescape (warning fix) #92
|
5
27
|
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
# OpenAPI Parser
|
2
|
-
[](https://github.com/ota42y/openapi_parser/actions/workflows/ci.yaml)
|
3
3
|
[](https://badge.fury.io/rb/openapi_parser)
|
4
4
|
[](https://www.rubydoc.info/gems/openapi_parser)
|
5
|
-
[](https://codeclimate.com/github/ota42y/openapi_parser/maintainability)
|
6
|
-
[](https://codeclimate.com/github/ota42y/openapi_parser/test_coverage)
|
7
5
|
[](https://inch-ci.org/github/ota42y/openapi_parser)
|
8
6
|
|
9
7
|
This is OpenAPI3 parser and validator.
|