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

unknown field in JSON input in PATCH request #253

Closed
tensor5 opened this issue Oct 22, 2024 · 1 comment
Closed

unknown field in JSON input in PATCH request #253

tensor5 opened this issue Oct 22, 2024 · 1 comment

Comments

@tensor5
Copy link
Contributor

tensor5 commented Oct 22, 2024

When the onboarding software wants to add a code hosting, it sends a PATCH with an array of the old URLs plus the new one:

{
  "email": "comune-di-riuso@example.com",
  "codeHosting": [
    {
      "url": "https://github.com/comune-di-riuso",
      "group": true,
      "createdAt": "2024-10-21T16:54:21.775684Z",
      "updatedAt": "2024-10-21T16:54:21.775684Z"
    },
    {
      "url": "https://github.com/comune-di-riuso-2"  # New code hosting
    }
  ]
}

this fails because createdAt and updatedAt are not accepted by the parser. See 1 and 2.

@tensor5
Copy link
Contributor Author

tensor5 commented Oct 22, 2024

Actually not bug of the api, but rather of onboarding.

@tensor5 tensor5 closed this as completed Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant