Skip to content

Conversation

arlyon
Copy link

@arlyon arlyon commented Sep 15, 2025

This simply adds a flag to ignore operations with missing ids rather than rejecting them outright. Routes for which progenitor cannot determine a name can be ignored. The default behaviour is not affected. I added a snapshot to exercise the codepath.

@arlyon arlyon changed the title add an operationId strategy to reject or ignore missing operations Add an operationId strategy to reject or ignore missing operations Sep 15, 2025

// Positional generation.
let mut generator = Generator::default();
let output = generate_formatted(&mut generator, &spec);
Copy link
Author

@arlyon arlyon Sep 15, 2025

Choose a reason for hiding this comment

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

Opted just to scope each assertion since the input settings are being cloned + modified. There are no changes here except cloning and passing in the provided settings over GenerationSettings::default()

@arlyon arlyon force-pushed the arlyon/missing-opid-strategy branch from 6ff9375 to e6f31b6 Compare September 15, 2025 17:09
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.

1 participant