graphiti-openapi 0.1.6 → 0.1.7

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: 2070008985f65464531c93f438aaa275db413c0d1daf0b933f6b86296063384a
4
- data.tar.gz: 115f94a0a40844d56d46737be9e63880c81fe40e4273ec7df0aaeeceb0bbe4c4
3
+ metadata.gz: '0962e601d9cb7f837f89445c4fc694f4e16812ad1ca3795075d32a74be2b7ac3'
4
+ data.tar.gz: 914aabfa1f7de37a29223cc2664448321cc4827a6e42c2b29664a2b3b2c69179
5
5
  SHA512:
6
- metadata.gz: 58105cea097503a9ae1ba7669771a21f414c32bebbb0870bd17f824092349c5f88f19018cf0c9d305d8e2e303f2fe9f617e3a81044b59b731e26557b08cf007c
7
- data.tar.gz: 0cf2572e4a4ba8e6600beac1271650fcca1897439e1a2e60d2a15161ca27941201c334bb5ecbd0b3a002fe38f73d267e7b596cf59a1a2c7496b564d0e4100399
6
+ metadata.gz: be75225e2d4ce2efcb1d304089354271cd1652609a5360e8a0607407c1ac1475879bb2aadad44303cbc1634d1cd5da7fd0f0bbd700da2384250ad25dfd4a57fa
7
+ data.tar.gz: 666061eda8306ff970889a1a32a5fed5ce79d667daf4139e3f02f3937ca61dc66a4290cf4ef72ed1d35269b1a1cb4960687b93993c7ab0694839f683cd2f1b93
@@ -68,7 +68,7 @@ module Graphiti::OpenAPI
68
68
  specification
69
69
  when :yaml
70
70
  json = specification.to_json
71
- JSON.parse(json).to_yaml
71
+ JSON.parse(json).to_yaml.gsub(/\A---\s+/, '')
72
72
  else
73
73
  raise ArgumentError, "Unknown format: `#{format.inspect}`"
74
74
  end
@@ -12,7 +12,7 @@ module Graphiti::OpenAPI
12
12
  TYPES_MAP = Hash.new do |hash, type|
13
13
  hash[type] = {type: type}
14
14
  end.merge(
15
- big_decimal: {type: :numeric, format: :decimal},
15
+ big_decimal: {type: :string, format: :decimal},
16
16
  hash: {type: :object, additionalProperties: true},
17
17
  datetime: {type: :string, format: :'date-time'},
18
18
  date: {type: :string, format: :date},
@@ -204,7 +204,7 @@ paths:
204
204
  operationId: getOAuth2Token
205
205
  tags:
206
206
  - OAuth2.0
207
- description: REtrieve OAuth 2.0 AccessToken
207
+ description: Retrieve OAuth 2.0 AccessToken
208
208
  requestBody:
209
209
  $ref: "#/components/requestBodies/OAuth2Request"
210
210
  responses:
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module OpenAPI
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-openapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Semyonov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-27 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties