Use `greenery` and `regex_transformer` to merge `pattern` and `patternProperties` keywords
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- python
- Domínio
- testing-qa
Direção de pesquisa
Start by reading the existing handling of overlapping pattern and patternProperties expressions in the repository, then review the greenery and regex_transformer projects linked in the issue. The issue describes integrating their regex operations while handling unsupported syntax and Unicode performance; done means overlapping patterns can be combined where supported, with graceful fallback for unsupported cases. No code entry point or tests are named, and the issue has had no comment for years.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Currently, hypothesis-jsonschema basically just gives up if the schema has two overlapping regular expressions - at best, we'll try to randomly pick one to generate examples from, and use the other to filter. The status quo is mostly fine, but we can do better!
- https://github.com/qntm/greenery implements all the key logic to translate between (truly) regular expressions and finite automata, which means we can do set operations like intersection and difference, but has a custom not-quite-Python-compatible pattern syntax.
- https://github.com/doni69/regex_transformer supports python
resyntax forgreenery
(Not all "python regular expressions" are truly regular in the sense of being equivalent to finite automata. Also, JSONSchema regex actually follow ECMA262 syntax, which is neither truly regular nor entirely compatible with the Python syntax. Fortunately the recommended subset is both compatible (except for Python allowing a trailing newline with $) and - with some special handling for lookahead - regular, so we'll continue our approach of handling what we can and gracefully degrading on the rest.)
This is a medium-to-large feature to develop, since regex_transformer exists but isn't packaged or particularly mature, and of unknown (neg-medium to medium) benefit. greenery might also need some patches to make Unicode handling more efficient. However I'd also like better regex handling in upstream Hypothesis, and it should only get easier over time!
- Linguagem predominante
- Python
- Estrelas
- 281
- Forks
- 35
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-jsonschema/hypothesis-jsonschema
-
Missing test files in Pypi releaseTalvez já em andamento @blouirts123 assumiu há 49 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 comentário ·
-
Push release tags to github?Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 reação ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 reações ·
Todas as issues de python-jsonschema/hypothesis-jsonschema
Issues semelhantes
-
accepted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
future-agi/future-agi#5908 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
eclipse-score/coverage_tool#101 ·
Mantenedores costumam responder em até 2 dias
-
Placeholder export disables HTML image input for picture descriptionTalvez já em andamento @cloudiful assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
docling-project/docling-serve#817 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
Techiebutler/freeframe#687 ·
Mantenedores costumam responder em até 1 dia
-
Parse truncated verbose GC logs up to the first XML errorTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug verbose GC
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
IBM/javacore-analyser#677 ·
Mantenedores costumam responder em até 1 dia