Failing test_canonicalises_to_equivalent_fixpoint
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start with the failing test in tests/test_canonicalise.py at line 45 and reproduce it using the schema in the issue. Compare the results of the first and second calls to canonicalise to locate why the schema changes again. Done means the test passes with the canonicalized schema unchanged on the second call.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Currently the test_canonicalises_to_equivalent_fixpoint test fails on assert cc == canonicalish(cc) with the following schema:
schema = {'not': {'anyOf': [{'type': 'number'}, {'if': {'type': 'null'}, 'then': {'type': 'null'}, 'else': {}}]}}
As far as I see, calling canonicalise second time should not transform the schema again. But here is schema after the first call:
{
"not": {"anyOf": [{"const": None}, {"not": {"const": None}}]},
"type": ["null", "boolean", "string", "array", "object"],
}
and after the second call:
{
"not": {
"anyOf": [
{"const": None},
{
"type": ["null", "boolean", "string", "array", "object"],
"not": {"const": None},
},
]
},
"type": ["null", "boolean", "string", "array", "object"],
}
git bisect gave me this commit - afc292b9a2873a0c33176e61829c3dde25139333
Should the second call leave the input schema as is?
- Langage dominant
- Python
- Étoiles
- 281
- Forks
- 35
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de python-jsonschema/hypothesis-jsonschema
-
Missing test files in Pypi releasePeut-être pris @blouirts123 l’a pris il y a 49 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 commentaire ·
-
Push release tags to github?Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 réaction ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 réactions ·
Toutes les issues de python-jsonschema/hypothesis-jsonschema
Issues similaires
-
accepted
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
future-agi/future-agi#5908 ·
Les mainteneurs répondent en général sous 1 jour
-
Placeholder export disables HTML image input for picture descriptionPeut-être pris @cloudiful l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
docling-project/docling-serve#817 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
Techiebutler/freeframe#687 ·
Les mainteneurs répondent en général sous 1 jour
-
Parse truncated verbose GC logs up to the first XML errorPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug verbose GC
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
IBM/javacore-analyser#677 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 2 jours