Overview
Artifact ID: | d9e497e2f96d8326595b7588a9534abf012dcec20278fe6cf703857d7aa57bb4 |
---|---|
Ticket: | d6cba6d6c899631f8687277222c2b7a8cdcf58a3
[brindille] validate_only ne fonctionne pas, il cherche un paramètre type |
User & Date: | alinaar on 2023-03-24 13:44:24 |
Changes
- foundin changed to: "1.3alpha1"
- icomment:
Bonjour, ``` // schema/debug.json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "some_text": { "description": "Some text", "type": "string", "maxLength": 128 }, "some_required_text": { "description": "Some required text", "type": "string", "maxLength": 128 }, "some_id": { "description": "Some ID", "type": ["integer", "null"], "maxLength": 19 } }, "required": [ "some_required_text" ] } ``` On cherche à mettre à jour la valeur de `some_text` pour l'entrée n°555. ``` // index.html {{:save id=555 validate_schema="./schema/debug.json" validate_only="some_text" some_text='hello world' }} ``` ``` RuntimeException Erreur dans 'index.html' : line 10: function 'save' has returned an error: ligne 10: impossible de valider le schéma: Invalid schema: no "type" supplied { "some_text": "hello world" } Parameters: {"id":555,"validate_schema":".\/schema\/debug.json","validate_only":"some_text","some_text":"hello world"} ``` En ajoutant volontairement le paramètre `type` : ``` {{:save id=555 type='fake_type' validate_schema="./include/schema/debug.json" validate_only="some_text" some_text='hello world' }} ``` Cela retourne toujours : ``` RuntimeException Erreur dans 'index.html' : line 10: function 'save' has returned an error: ligne 10: impossible de valider le schéma: Invalid schema: no "type" supplied { "type": "fake_type", "some_text": "hello world" } Parameters: {"id":555,"type":"fake_type","validate_schema":".\/schema\/debug.json","validate_only":"some_text","some_text":"hello world"} ```
- login: "alinaar"
- mimetype: "text/x-markdown"
- private_contact changed to: "1039e9c19b0e171a66e5b1e48edf93fdf7cd680e"
- severity changed to: "Important"
- status changed to: "Open"
- title changed to:
[brindille] validate_only ne fonctionne pas, il cherche un paramètre type
- type changed to: "Bug"