Skip to content

Commit

Permalink
Handle float values in models
Browse files Browse the repository at this point in the history
  • Loading branch information
hyfen committed Apr 25, 2024
1 parent 700df6a commit 6faa8ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/chronicle/models/model_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def build_type(property)
type_values << Chronicle::Schema::Types::Params::Time if full_range_identifiers.include? :DateTime
type_values << Chronicle::Schema::Types::String if %i[Text URL Distance Duration Energy
Mass].intersect?(full_range_identifiers)

type_values << Chronicle::Schema::Types::Params::Float if full_range_identifiers.include? :Float
type_values << Chronicle::Schema::Types::Params::Integer if full_range_identifiers.include? :Integer
type_values << Chronicle::Models.schema_type(full_range_identifiers)

Expand Down

0 comments on commit 6faa8ee

Please sign in to comment.