You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by dg...@apache.org on 2022/04/26 13:08:24 UTC
[unomi] branch add-schema-validators updated (7dc580c8f -> 2b9cc92ea)
This is an automated email from the ASF dual-hosted git repository.
dgriffon pushed a change to branch add-schema-validators
in repository https://gitbox.apache.org/repos/asf/unomi.git
omit 7dc580c8f rebase master
omit 170f9e5e9 remove isEventValid as now done at json level
omit 6ea2bae63 restore fail on error
omit 8b94f63cf fix tests
omit d65636817 do log on integration test only
omit 4ec43eaf8 improve github action
omit b4ab0010a fix session properties
omit 6ca9e18ee fix unit tests + add validation on event collector request object
omit 79d72ed3a code review changes
omit b9f148b2f improve response in case of invalid object to match what is expected
omit 75f769323 send expected error
omit 1e7453337 restore null option to schemas
omit bff4e7995 improve deserialization
omit 0ee7d74c3 DMF-5359 : - Add schema to contextRequest object - Improve schema validation by using custom deserializers for contextRequest and eventCollectorRequest
add 251e667c1 UNOMI-561 : add endpoint to register json extensions (#406)
add f152aacd7 DMF-5359 : - Add schema to contextRequest object - Improve schema validation by using custom deserializers for contextRequest and eventCollectorRequest
add 1d1b324b0 improve deserialization
add fe67788fe restore null option to schemas
add 990a389de send expected error
add b0cf5ef77 improve response in case of invalid object to match what is expected
add f2fe5e47a code review changes
add 974150712 fix unit tests + add validation on event collector request object
add f5548bcc6 fix session properties
add 6c2f62c3a improve github action
add 0d495eec4 do log on integration test only
add 75894f195 fix tests
add aaa80655d restore fail on error
add 9d866b580 remove isEventValid as now done at json level
add 2b9cc92ea rebase master
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (7dc580c8f)
\
N -- N -- N refs/heads/add-schema-validators (2b9cc92ea)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
.../unomi/api/schema/JSONSchemaExtension.java | 83 ++++++++++++++++++++++
.../unomi/api/schema/json/JSONTypeFactory.java | 10 +--
.../{SchemaRegistry.java => SchemaService.java} | 49 ++++++++++++-
.../graphql/schema/GraphQLSchemaProvider.java | 22 +++---
.../unomi/graphql/schema/GraphQLSchemaUpdater.java | 10 +--
.../types/resolvers/CDPEventInterfaceResolver.java | 8 ++-
.../java/org/apache/unomi/itests/JSONSchemaIT.java | 55 +++++++++++++-
.../extension/extension-test-event-example.json | 26 +++++++
.../unomi/rest/endpoints/JsonSchemaEndPoint.java | 16 ++---
...Point.java => JsonSchemaExtensionEndPoint.java} | 46 ++++++------
.../services/impl/events/EventServiceImpl.java | 6 +-
...emaRegistryImpl.java => SchemaServiceImpl.java} | 71 ++++++++++++++++--
.../impl/schemas/UnomiPropertyTypeKeyword.java | 19 +++--
.../services/listener/JsonSchemaListener.java | 67 ++++++++++++++---
.../resources/OSGI-INF/blueprint/blueprint.xml | 8 +--
15 files changed, 402 insertions(+), 94 deletions(-)
create mode 100644 api/src/main/java/org/apache/unomi/api/schema/JSONSchemaExtension.java
rename api/src/main/java/org/apache/unomi/api/services/{SchemaRegistry.java => SchemaService.java} (65%)
create mode 100644 itests/src/test/resources/schemas/extension/extension-test-event-example.json
copy rest/src/main/java/org/apache/unomi/rest/endpoints/{JsonSchemaEndPoint.java => JsonSchemaExtensionEndPoint.java} (70%)
rename services/src/main/java/org/apache/unomi/services/impl/schemas/{SchemaRegistryImpl.java => SchemaServiceImpl.java} (78%)