Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger change for pre and post script #4298

Merged
merged 7 commits into from
Oct 23, 2018
Merged

Swagger change for pre and post script #4298

merged 7 commits into from
Oct 23, 2018

Conversation

jemex
Copy link
Contributor

@jemex jemex commented Oct 19, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@AutorestCI
Copy link

AutorestCI commented Oct 19, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#3125

@AutorestCI
Copy link

AutorestCI commented Oct 19, 2018

Automation for azure-sdk-for-js

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-js#293

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Oct 19, 2018

Automation for azure-sdk-for-node

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-node#3938

@AutorestCI
Copy link

AutorestCI commented Oct 19, 2018

Automation for azure-sdk-for-go

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-go#3115

@annatisch
Copy link
Member

@jemex - this PR includes breaking changes yet does not alter the API version.
Were these changes actually made to the service without updating the API version? Or were these always errors in the spec?

Also, please fix the semantic and model validation errors in CI:

 error : 
code: OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION
message: 'Missing required property definition: updateConfiguration'
path:
  - definitions
  - softareUpdateConfigurationRunTasks
jsonUrl: >-
  specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json


 error : 
code: OBJECT_MISSING_REQUIRED_PROPERTY_DEFINITION
message: 'Missing required property definition: scheduleInfo'
path:
  - definitions
  - softareUpdateConfigurationRunTasks
jsonUrl: >-
  specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json

@jemex
Copy link
Contributor Author

jemex commented Oct 22, 2018

@annatisch, this PR doesn't have breaking changes. we only added new properties to the existing model.

@annatisch
Copy link
Member

@jemex - Ah you're right - but it's currently broken because "required" is incorrectly indented to become part of properties:

Once you fix that it will no longer be breaking :)

@jemex
Copy link
Contributor Author

jemex commented Oct 22, 2018

@annatisch - Thank you so much for the feedback. I have updated the "required" field. the checks takes longer to validate them, what do I need to do?

@jemex
Copy link
Contributor Author

jemex commented Oct 22, 2018

@annatisch- can you merge this PR please if you it looks ok to you.

@annatisch
Copy link
Member

@jemex - Can you please fix the model validation errors? I will review once CI is clean:

 error : 
operationId: SoftwareUpdateConfigurations_Create
source: response
responseCode: '200'
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - locations
  message: 'Additional properties not allowed: locations'
  jsonUrl: >-
    specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json

 error : 
operationId: SoftwareUpdateConfigurations_Create
source: response
responseCode: '201'
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - locations
  message: 'Additional properties not allowed: locations'
  jsonUrl: >-
    specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json

 error : 
operationId: SoftwareUpdateConfigurations_GetByName
source: response
responseCode: '200'
errorDetails:
  code: OBJECT_ADDITIONAL_PROPERTIES
  params:
    - - locations
  message: 'Additional properties not allowed: locations'
  jsonUrl: >-
    specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json

Copy link
Member

@annatisch annatisch left a comment

Choose a reason for hiding this comment

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

Looks pretty good - just a couple of minor things to improve the generated code :)

@jemex
Copy link
Contributor Author

jemex commented Oct 23, 2018

@annatisch - I have resolved the feedback. Can you tell me if I have missed anything? If not and if it looks good, can you merge , please?

@annatisch
Copy link
Member

@AutorestCI
Copy link

AutorestCI commented Oct 23, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@annatisch
Copy link
Member

@AutorestCI regenerate azure-sdk-for-python

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.

4 participants