Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

** (FunctionClauseError) no function clause matching in String.split/3 #180

Open
marcpawl opened this issue Sep 20, 2023 · 0 comments · May be fixed by #181
Open

** (FunctionClauseError) no function clause matching in String.split/3 #180

marcpawl opened this issue Sep 20, 2023 · 0 comments · May be fixed by #181

Comments

@marcpawl
Copy link

'''
/usr/local/bin/js2e /Users/marcpawl/github/Triumph_TTS/fake_meshwesh/json_schemas --module-name Meshwesh
warning: :logger :level has been set to :warn in config files, please use :warning instead
(logger 1.15.5) lib/logger/app.ex:102: Logger.App.default_level/0
(logger 1.15.5) lib/logger/app.ex:35: Logger.App.start/2
(kernel 9.0.2) application_master.erl:293: :application_master.start_it_old/4

** (FunctionClauseError) no function clause matching in String.split/3

The following arguments were given to String.split/3:

    # 1
    :anonymous

    # 2
    "-"

    # 3
    []

(elixir 1.15.5) lib/string.ex:478: String.split/3
(js2e 2.9.1) lib/printer/utils/naming.ex:191: JS2E.Printer.Utils.Naming.kebab_to_camel_case/1
(js2e 2.9.1) lib/printer/utils/naming.ex:84: JS2E.Printer.Utils.Naming.normalize_identifier/2
(js2e 2.9.1) lib/printer/utils/naming.ex:11: JS2E.Printer.Utils.Naming.create_root_name/2
(js2e 2.9.1) lib/printer/object_printer.ex:52: JS2E.Printer.ObjectPrinter.print_type/4
(elixir 1.15.5) lib/enum.ex:1693: Enum."-map/2-lists^map/1-1-"/2
(js2e 2.9.1) lib/printer/printer.ex:247: JS2E.Printer.merge_results/5
(js2e 2.9.1) lib/printer/printer.ex:132: JS2E.Printer.print_schema/3

make: *** [src/ArmyListsSummary.elm] Error 1

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "summary",
"description": "Meshwesh summary",
"$id": "https://github.com/marcpawl/Triumph_TTS.git/$summary",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"derivedData": {
"type": "object",
"properties": {
"listStartDate": {
"type": "integer"
},
"listEndDate": {
"type": "integer"
},
"extendedName": {
"type": "string"
}
},
"required": [
"extendedName",
"listEndDate",
"listStartDate"
]
}
},
"required": [
"derivedData",
"id",
"keywords",
"name"
]
}
}
'''

setop added a commit to setop/json-schema-to-elm that referenced this issue Jul 23, 2024
fix handle object has no properties
chore update to elixir 1.16 and fix related warnings

closes dragonwasrobot#180
@setop setop linked a pull request Jul 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant