oas_core 1.3.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25745b92adac67103b83e87c32b5e4ad79fa05addd4c18c36638a726e5c265d7
4
- data.tar.gz: 584a858c3cba7df7ebf9a9f219f4580db1237dae3a2f07a3ac0d02f90e6f5b8b
3
+ metadata.gz: eeca30490a45ee62b086bbe08845dc6fc37be5a8ff10c1c09d9e63ecbea9bd93
4
+ data.tar.gz: f80893602454fc6992a8fc81419bd73597b675ae74523effa64054f82eae47d8
5
5
  SHA512:
6
- metadata.gz: 1d62dbfe664d07dea17bd9f47b20cacc743e4e44fd6011c5e9e0b56c9dfd22ab8ac795590345014304e69708e734c9f45f55a8faa62a77a17ed94449fde713f9
7
- data.tar.gz: 4135466e3a1c2a006ddf29d298676557cb65b7f750870e735eaf8af2da0c55bbb44b8f84769a2cf9bc39983f9a530f39c2fe25e5b618a2434bc02dded874da3c
6
+ metadata.gz: d88a92bae6c8740be39adfd4ca77aebbe14815e4a3d685502fcd7ec02c6a8a40a2d819ebe3cc28ce1444be4416e6beeb932cae941fc6121969de79eaeed6dc87
7
+ data.tar.gz: c57990c4a8982f5b27f753df060c2a38662178ced8df991893f2b3125824858d3e6c6260274a4e21d8a4632b02d55dce8fc10d7e39c3798218df215eb8b9f08e
@@ -14,6 +14,7 @@ module OasCore
14
14
  @operation.description = oas_route.docstring
15
15
  @operation.tags = extract_tags(oas_route:)
16
16
  @operation.security = extract_security(oas_route:)
17
+ @operation.deprecated = oas_route.tags(:deprecated).any?
17
18
  @operation.parameters = ParametersBuilder.new(@specification).from_oas_route(oas_route).build
18
19
  @operation.request_body = extract_request_body(oas_route)
19
20
  @operation.responses = ResponsesBuilder.new(@specification)
@@ -6,7 +6,7 @@ module OasCore
6
6
  include Specable
7
7
 
8
8
  attr_accessor :specification, :tags, :summary, :description, :operation_id, :parameters, :request_body,
9
- :responses, :security
9
+ :responses, :security, :deprecated
10
10
 
11
11
  def initialize(specification)
12
12
  @specification = specification
@@ -18,10 +18,11 @@ module OasCore
18
18
  @request_body = {}
19
19
  @responses = Spec::Responses.new(specification)
20
20
  @security = []
21
+ @deprecated = false
21
22
  end
22
23
 
23
24
  def oas_fields
24
- %i[tags summary description operation_id parameters request_body responses security]
25
+ %i[tags summary description operation_id parameters request_body responses security deprecated]
25
26
  end
26
27
  end
27
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OasCore
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - a-chacon