AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

Error parsing json property with minus #261

Closed rabestro closed 4 months ago

rabestro commented 4 months ago

Source test:

{{host}}/actuator/info

?? status == 200
?? body app exists
?? body git exists
?? body build exists
?? body os exists
?? body java exists
?? body java.version startsWith 17
?? body app.source-code endsWith pig-latin-rest
?? body app.source-code contains rabestro

TestResults

✓: status == 200 ✓: app exists ✓: git exists ✓: build exists ✓: os exists ✓: java exists ✓: java.version startsWith 17 ✖: app.source-code endsWith pig-latin-rest (ReferenceError: code is not defined - Object.userJS (/Users/jegors/Projects/engx-advanced/pig-latin-rest/httpYac/actuator/server-info.http:2:70) ✖: app.source-code contains rabestro (ReferenceError: code is not defined - Object.userJS (/Users/jegors/Projects/engx-advanced/pig-latin-rest/httpYac/actuator/server-info.http:2:70)

AnWeber commented 4 months ago

duplicate of AnWeber/httpyac#640