Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
schemaId update
  • Loading branch information
ankitk-me committed Jan 24, 2024
commit 0401be3d1e723032ea72291df18f341d67698c9a
2 changes: 1 addition & 1 deletion incubator/types-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<jacoco.coverage.ratio>0.91</jacoco.coverage.ratio>
<jacoco.coverage.ratio>0.90</jacoco.coverage.ratio>
<jacoco.missed.count>0</jacoco.missed.count>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public boolean validate(
ValueConsumer next)
{
boolean status = true;

int schemaId = catalog != null && catalog.id > 0
? catalog.id
: handler.resolve(subject, catalog.version);

try
{
if ((flags & FLAGS_INIT) != 0x00)
Expand All @@ -95,7 +100,7 @@ public boolean validate(
if ((flags & FLAGS_FIN) != 0x00)
{
in.wrap(buffer, 0, progress);
JsonProvider provider = supplyProvider(catalog.id);
JsonProvider provider = supplyProvider(schemaId);
parser = provider.createParser(in);
while (parser.hasNext())
{
Expand Down