19 września 2024 włączymy walidację nadmiarowych pól podczas wystawiania i edycji oferty / On September 19, 2024, we will enable validation of redundant fields during listing and editing an offer
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 244
- Forks
- 40
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Zwiększymy restrykcyjność walidacji przesyłanych danych podczas wystawiania i edycji oferty. **Od 19 września nie prześlesz pól, które nie są ujęte w dokumentacji.** Obecnie błędne lub nadmiarowe pola są pomijane, a request przechodzi bez błędu, dlatego możesz nie być świadomy, że przesłane wartości pól, które mają błędną nazwę (np. z powodu literówki) nie zostały uwzględnione.
**Jakich zasobów dotyczy zmiana?**
- [POST /sale/product-offers](https://developer.allegro.pl/documentation#operation/createProductOffers)
- [PATCH sale/product-offers/{offerId}](https://developer.allegro.pl/documentation#operation/editProductOffers).
**Jakie możesz się przygotować?**
Do czasu wdrożenia będziemy sprawdzać, czy przesyłasz poprawne dane. Od końca lipca, jeśli będziesz wysyłać błędne lub nadmiarowe pola, w odpowiedzi w **"validation.warnings"** otrzymasz komunikat o włączeniu walidacji od 19 września oraz w danych dla **"metadata"** zobaczysz listę pół, których to dotyczy (maksymalnie 10). To oznacza, że powinieneś zweryfikować przesyłane dane i usunąć nadmiarowe pola ze swoich requestów. Im szybciej sie na to przygotujesz tym lepiej. **Od 19 września 2024 requesty z nadmiarowymi polami będą kończyły się błędem 422 "Unprocessabble Entity"**, gdzie w **"errors.metadata"** zwrócimy listę błędnych pól (maksymalnie 10).
---
We will increase the strictness of data validation when listing and editing an offer. **From September 19, you will not submit fields not included in the documentation**. Currently, invalid or redundant fields are ignored and the request passes without error, so you may not be aware that submitted field values that have a wrong name (e.g. due to a typo) have not been included.
**What resources are affected by the change?**
- [POST /sale/product-offers](https://developer.allegro.pl/documentation#operation/createProductOffers)
- [PATCH sale/product-offers/{offerId}](https://developer.allegro.pl/documentation#operation/editProductOffers).
**What preparations can you make?**
Until implementation, we will check that you are sending correct data. Starting at the end of July, if you submit incorrect or redundant fields, you will receive a message in the response in **"validation.warnings"** that validation will be enabled from September 19, and in the data for **"metadata"** you will see a list of affected fields (maximum 10). This means that you should validate your request data and remove redundant fields. Your best option is to get ready as soon as possible. **From September 19, requests with redundant fields will end up with the 422 "Unprocessable Entity" error**, where **"errors.metadata"** will return a list of incorrect fields (maximum 10).
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.