question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v6] Error generating from latest schema registry swagger: duplicate object schemas

See original GitHub issue

I’m trying to update schema-registry generated code for TypeScript

Given this configuration:

description: Generated Schema Registry Client
generate-metadata: false
add-credentials: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../
source-code-folder-path: ./src/generated
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e23d91e875e4464e57667639e06408cef99868d/specification/schemaregistry/data-plane/Microsoft.EventHub/preview/2020-09-01-preview/schemaregistry.json
use-extension:
  "@autorest/typescript": "6.0.0-dev.20200918.1"

I get:

ERROR (): Duplicate object schemas with 'SerializationType' name  detected.
FATAL: Error: 1 errors occured -- cannot continue.
  Error: Plugin checker reported failure.

I am not sure if this is an issue with the swagger authoring (cc @arerlend) or with the generator (cc @joheredi).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MiYannicommented, Feb 18, 2021

@sarangan12 I’ve reopened the issue you mentioned so it can be investigated. It was improperly tested in the issue. You can keep this issue closed.

1reaction
sarangan12commented, Feb 18, 2021

@nguerrera As discussed in the above conversations, the issue is happening with modelerfour and it would be best answered if you follow it up with the issue https://github.com/Azure/autorest/issues/3629.

If you still face any issue after the modeler issue is fixed, feel free to reopen the issue.

No more pending action items for this issue. Closing it now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

swagger error: Conflicting schemaIds - Stack Overflow
This error resulted when I tried to show Swagger UI. ... SchemaGeneratorOptions = new SchemaGeneratorOptions {SchemaIdSelector = type ...
Read more >
Schema Registry API Reference | Confluent Documentation
The Schema Registry server can enforce certain compatibility rules when new schemas are registered in a subject. These are the compatibility types:.
Read more >
Confluent Schema Registry - Hackolade
The Confluent Schema Registry is a central repository with a RESTful interface for developers to define standard schemas and register applications to enable ......
Read more >
apispec - Read the Docs
First, create an APISpec object, passing basic information about your ... schema and parameter objects from marshmallow schemas and fields.
Read more >
Ajv: Another JSON Schema Validator - GitLab
to make code injection from untrusted schemas impossible, code generation is fully re-written to be safe. to simplify Ajv extensions, the new keyword...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found