usecase Request safe {
input {
headers string
body
}
result {
ok boolean
}
}
I run sf create:map with this profile.
Expected Behavior
Map is created.
Current Behavior
I get an error: Error: Type is undefined with no futher information.
Rerunning the cli with DEBUG='*' gives me the following stack trace:
Error: Type is undefined
at .../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/structure-tree/parse.js:96:23
at Array.map (<anonymous>)
at visitObjecDefinition (.../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/structure-tree/parse.js:91:35)
at visit (.../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/structure-tree/parse.js:12:20)
at Object.parse (.../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/structure-tree/parse.js:5:12)
at extractExample (.../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/build.js:11:33)
at .../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/build.js:30:24
at Array.map (<anonymous>)
at Object.buildUseCaseExamples (.../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/example/build.js:27:45)
at .../node_modules/@superfaceai/cli/dist/templates/prepared-map/usecase/prepare-usecase-detail.js:24:34
Steps to Reproduce
Create a profile foo with a use case containing an untyped field and any provider bar
Given a profile which contains a use case like:
I run
sf create:map
with this profile.Expected Behavior
Map is created.
Current Behavior
I get an error:
Error: Type is undefined
with no futher information.Rerunning the cli with
DEBUG='*'
gives me the following stack trace:Steps to Reproduce
foo
with a use case containing an untyped field and any providerbar
superface create:map foo bar
Your Environment