File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ def set_data(data, options)
6666 else
6767 if discriminator? ( data )
6868 # case 2 - extract typed data from parsed JSON
69- # Open question - if there is a schema given, should we validate that these
70- # two pieces work together?
7169 data . except ( '__type' )
7270 else
7371 # case 3 - untyped data, we will need consolidate timestamps and such
@@ -76,7 +74,6 @@ def set_data(data, options)
7674 end
7775 end
7876
79- # TODO: probably need to check if given runtime shape is a type of schema
8077 def valid_schema? ( schema )
8178 schema . is_a? ( Shapes ::StructureShape ) && !schema . type . nil?
8279 end
Original file line number Diff line number Diff line change 44SimpleCov . start
55
66require 'smithy-schema'
7- require_relative 'support/schema_helper'
87
98# This file was generated by the `rspec --init` command. Conventionally, all
109# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
You can’t perform that action at this time.
0 commit comments