Skip to content

hide operations with > 2 body types#1300

Merged
iscai-msft merged 12 commits intoautorestv3from
hide_three_types
Jun 14, 2022
Merged

hide operations with > 2 body types#1300
iscai-msft merged 12 commits intoautorestv3from
hide_three_types

Conversation

@iscai-msft
Copy link
Contributor

fixes #1263

TODO: adding tests, will add tomorrow

self.is_overload: bool = yaml_data["isOverload"]
self.api_versions: List[str] = yaml_data["apiVersions"]

if code_model.options["version_tolerant"] and yaml_data.get("abstract"):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

basically moved abstract marking code to m4reformatter, and moved the warning to base builder. This centralizes our code more


if code_model.options["version_tolerant"] and yaml_data.get("abstract"):
_LOGGER.warning(
'Not going to generate operation "%s" because it we are unable to generate this '
Copy link
Member

Choose a reason for hiding this comment

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

nit: "because it" --> "because"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks! my sentence really didn't make much sense 🤣

@iscai-msft iscai-msft merged commit 273d68b into autorestv3 Jun 14, 2022
@iscai-msft iscai-msft deleted the hide_three_types branch June 14, 2022 22:06
iscai-msft added a commit that referenced this pull request Jun 23, 2022
…into full_pipeline_cadl

* 'autorestv3' of https://github.com/Azure/autorest.python: (35 commits)
  nosec bandit code (#1324)
  pin isodate to major version (#1321)
  Dont generate maxpagesize (#1320)
  reformat api-version into next link if its a client param (#1309)
  Update ChangeLog.md (#1310)
  Update ChangeLog.md
  Update package.json
  Update ChangeLog.md
  just do get call to next link for single operation dpg paging (#1307)
  Update ChangeLog.md
  remove lowlevel client test (#1303)
  default to version tolerant (#1304)
  Fix changelog date (#1302)
  hide operations with > 2 body types (#1300)
  update min dependency for `msrest` (#1301)
  remove dpg legacy generation (#1298)
  update flags (#1297)
  Update package.json
  Update ChangeLog.md
  Update ChangeLog.md
  ...
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.

don't generate functions if there are three body types in DPG

2 participants