Skip to content

Commit

Permalink
fix(specs): support synonyms type in camel case [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4031

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Oct 28, 2024
1 parent 095aa04 commit 9201867
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/algolia/models/search/synonym_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,21 @@ class SynonymType
ALTCORRECTION1 = "altcorrection1".freeze
ALTCORRECTION2 = "altcorrection2".freeze
PLACEHOLDER = "placeholder".freeze
ONE_WAY_SYNONYM = "oneWaySynonym".freeze
ALT_CORRECTION1 = "altCorrection1".freeze
ALT_CORRECTION2 = "altCorrection2".freeze

def self.all_vars
@all_vars ||= [SYNONYM, ONEWAYSYNONYM, ALTCORRECTION1, ALTCORRECTION2, PLACEHOLDER].freeze
@all_vars ||= [
SYNONYM,
ONEWAYSYNONYM,
ALTCORRECTION1,
ALTCORRECTION2,
PLACEHOLDER,
ONE_WAY_SYNONYM,
ALT_CORRECTION1,
ALT_CORRECTION2
].freeze
end

# Builds the enum from string
Expand Down

0 comments on commit 9201867

Please sign in to comment.