Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

C API options to allow skipping message body (schema) generation #781

Merged
merged 7 commits into from
Apr 6, 2020

Conversation

tjanc
Copy link
Contributor

@tjanc tjanc commented Apr 1, 2020

Builds on tjanc/refactor-payloads-2 to implement skipping asset generation as laid out in apiaryio/api-elements.js#281 .

In more detail, two options are added to drafter_parse_options and the drafter C API:

  • skip_gen_bodies [bool, default: false], when set, skips generating message body assets
  • skip_gen_body_schemas [bool, default: false], when set, skips generating message body schema assets

Simple tests were added. Some test logic was moved into a seperate compilation unit test/ctesting.cc.

Not in scope of this PR

  • wiring the new options into drafter CLI

@tjanc tjanc changed the base branch from tjanc/refactor-payloads-2 to master April 3, 2020 09:51
@tjanc tjanc marked this pull request as ready for review April 3, 2020 09:51
@tjanc tjanc force-pushed the tjanc/do-not-generate-option branch from f696e4e to 8e40169 Compare April 3, 2020 10:05
@tjanc tjanc removed the DO NOT MERGE label Apr 3, 2020
test/ctesting.c Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants