eclipse-vertx / eclipse-vertx/vertx-json-schema

Improving data processing by using Petri nets

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
86
Forks
30
PR merge metrics
No merged PRs in 30d

Description

:eyes: I took another look at [the implementation of the method “validate”](https://github.com/eclipse-vertx/vertx-json-schema/blob/2b9f2294af078787511c3da2824e90c6e7fb3551/src/main/java/io/vertx/json/schema/impl/SchemaValidatorImpl.java#L173 "Update candidate").
Thus I noticed that source code like “`if (schema.containsKey("…"))`” is used at some places.
The passed key word is always checked.

:thinking: I imagine that unnecessary condition checks can be avoided if an other algorithm can be applied.
Thus I propose to consider data processing alternatives by [working with Petri nets](https://en.wikipedia.org/wiki/Petri_net "Documentation").
:crystal_ball: I am curious on further software evolution in such a design direction.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.