Method: AssemblyAI::Transcripts::AutoHighlightResult.validate_raw
- Defined in:
- lib/assemblyai/transcripts/types/auto_highlight_result.rb
.validate_raw(obj:) ⇒ Void
Leveraged for Union-type generation, validate_raw attempts to parse the given
hash and check each fields type against the current object's property
definitions.
79 80 81 82 83 84 |
# File 'lib/assemblyai/transcripts/types/auto_highlight_result.rb', line 79 def self.validate_raw(obj:) obj.count.is_a?(Integer) != false || raise("Passed value for field obj.count is not the expected type, validation failed.") obj.rank.is_a?(Float) != false || raise("Passed value for field obj.rank is not the expected type, validation failed.") obj.text.is_a?(String) != false || raise("Passed value for field obj.text is not the expected type, validation failed.") obj..is_a?(Array) != false || raise("Passed value for field obj.timestamps is not the expected type, validation failed.") end |