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

[Bug]: Configure API - Adding Header layer does not include sublayers array #442

Open
tariqksoliman opened this issue Oct 23, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tariqksoliman
Copy link
Member

Checked for duplicates

Yes - I've already checked

Describe the bug

When using the addLayer endpoint to add a header layer like:

curl -XPOST -H "Authorization:Bearer {token}" -H "Content-Type: application/json"  -d '{"placement": {"path": "Features.CAMP.DeepHeader.child35", "index": 0}, "layer": {"type": "header", "name": "child351", "sublayers": [], "description": "c"}, "mission": "MSL", "forceClientUpdate": false}'  http://localhost:8889/api/configure/addLayer

"sublayers": [] should be automatically included if it wasn't. Otherwise, subsequent layer adds under that header will not work,

What did you expect?

Adding header layers does should include a 0sublayers array

Reproducible steps

No response

Environment

No response

@tariqksoliman tariqksoliman added bug Something isn't working good first issue Good for newcomers labels Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant