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

Preserve type information in the AJAX requests #14

Open
jonaseberle opened this issue Dec 5, 2023 · 1 comment
Open

Preserve type information in the AJAX requests #14

jonaseberle opened this issue Dec 5, 2023 · 1 comment
Labels
discussion We need to discuss this in the team next sprint This ticket should/could be solved within the next community sprint. outdated Outdated because of the new repo
Milestone

Comments

@jonaseberle
Copy link
Collaborator

We need to get bool/int/string/array in PHP to correctly save it as .yaml.

The HTTP transfer is encoded as multipart/form-data (because PHP does not understand JSON natively).

Currently that leads to only string/array.

Idea:
We could send a JSON string via multipart/form-data and json_decode() the whole thing once in PHP.

@PKuhlmay PKuhlmay added this to the v1.0.0 milestone Apr 17, 2024
@PKuhlmay PKuhlmay added the discussion We need to discuss this in the team label May 10, 2024
@PKuhlmay
Copy link
Collaborator

Couldn't we use application/json instead? With this, we could send booleans directly.

@krausandre krausandre added the next sprint This ticket should/could be solved within the next community sprint. label May 21, 2024
@PKuhlmay PKuhlmay added the outdated Outdated because of the new repo label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion We need to discuss this in the team next sprint This ticket should/could be solved within the next community sprint. outdated Outdated because of the new repo
Projects
None yet
Development

No branches or pull requests

3 participants