Skip to content

Conversation

@stano45
Copy link
Collaborator

@stano45 stano45 commented May 28, 2023

No description provided.

@stano45 stano45 requested review from bird-dancer and doepnern and removed request for doepnern May 29, 2023 07:11
@doepnern
Copy link
Collaborator

Sieht gut aus finde ich.
Der unique check für operationId ist auch gut, wenn man in das offizielle schema guckt, dann ist operationId gar nicht required. Also können wir das auch gar nicht standardmäßig als Identifier nehmen. Vielleicht wäre es schlau da dann als fallback oder so channelName +"" + subscribe/publish zu nehmen

@bird-dancer
Copy link
Member

bird-dancer commented May 30, 2023

Wenn du die validator json Dateien, nicht komplett selbst geschrieben hast, dann muss da denke ich noch ein copyright notice hin

@doepnern
Copy link
Collaborator

Das ist ja von der offizielen asyncapi-initiative https://github.com/asyncapi/spec-json-schemas/tree/master/schemas, müssen wir nicht eh die zitieren da wir ein programm basierend auf deren spec schreiben

@bird-dancer
Copy link
Member

Das ist ja von der offizielen asyncapi-initiative https://github.com/asyncapi/spec-json-schemas/tree/master/schemas, müssen wir nicht eh die zitieren da wir ein programm basierend auf deren spec schreiben

Ja, aber deren spec project inklusive, der json files ist unter der apache2.0 Lizenz veröffentlicht, und die fordert attribution für unveränderte code Bestandteile. Also nicht nur im Bezug auf Zitate in der Abgabe, sondern es wäre denke ich eine Urheberrechtsverletzung.

Copy link
Member

@bird-dancer bird-dancer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sanitize_operation_ids_and_check_duplicate() could be done more elegantly with iterators, but its fine for now.
looks great 😄

@stano45 stano45 merged commit 16143a0 into main May 31, 2023
@bird-dancer bird-dancer deleted the 14-validate-field-names-from-spec-check-for-special-characters-disallowed-in-rust-etc branch June 11, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate field names from spec, check for special characters disallowed in rust (/, ., etc)

4 participants