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

Lint JSON multi-linestring #2982

Open
jcamiel opened this issue Jun 28, 2024 · 0 comments
Open

Lint JSON multi-linestring #2982

jcamiel opened this issue Jun 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Jun 28, 2024

On GitHub we can see some Hurl files with this content:

https://github.com/sodazone/ocelloids-services/blob/main/packages/server/guides/hurl/tests/subscriptions/3_update.hurl

# Update Senders
PATCH {{base-url}}/subs/xcm/test-1
```json
[
  { "op": "add", "path": "/args/senders/-", "value": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" },
  { "op": "add", "path": "/args/senders/-", "value": "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" },
  { "op": "add", "path": "/args/senders/-", "value": "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw" },
  { "op": "remove", "path": "/args/senders/0" }
]
```
HTTP 200

hurlfmt should lint this to JSON body:

# Update Senders
PATCH {{base-url}}/subs/xcm/test-1
[
  { "op": "add", "path": "/args/senders/-", "value": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" },
  { "op": "add", "path": "/args/senders/-", "value": "5DAAnrj7VHTznn2AWBemMuyBwZWs6FNFjdyVXUeYum3PTXFy" },
  { "op": "add", "path": "/args/senders/-", "value": "5HGjWAeFDfFCWPsjFQdVV2Msvz2XtMktvgocEZcCj68kUMaw" },
  { "op": "remove", "path": "/args/senders/0" }
]
HTTP 200
@jcamiel jcamiel added the enhancement New feature or request label Jun 28, 2024
@jcamiel jcamiel changed the title Lint JSON multistring Lint JSON multi-linestring Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant