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

Security t2 #14676

Merged
merged 28 commits into from
Jun 15, 2021
Merged

Security t2 #14676

merged 28 commits into from
Jun 15, 2021

Conversation

RAY-316
Copy link
Contributor

@RAY-316 RAY-316 commented Jun 4, 2021

@openapi-workflow-bot
Copy link

Hi, @RAY-316 Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com

    @openapi-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 4, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.

    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

    Only 10 items are listed, please refer to log for more details.

    Rule Message
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions'
    Location: Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json#L76
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions/{externalSecuritySolutionsName}'
    Location: Microsoft.Security/stable/2020-01-01/externalSecuritySolutions.json#L118
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Security/preview/2017-08-01-preview/securityContacts.json#L185
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Security/preview/2017-08-01-preview/workspaceSettings.json#L216
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Security/preview/2019-01-01-preview/automations.json#L239
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Security/preview/2019-01-01-preview/alertsSuppressionRules.json#L182
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.Security/stable/2020-01-01/assessmentMetadata.json#L248
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.Security/preview/2017-08-01-preview/compliances.json#L163
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json#L371
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.Security/preview/2019-01-01-preview/regulatoryCompliance.json#L376
    ️⚠️Avocado: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/security/resource-manager/readme.md
    tag: specification/security/resource-manager/readme.md#tag-package-composite-v3
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️[Staging] SDK Track2 Validation succeeded [Detail]
    The following errors/warnings are introduced by current PR:

    |:speech_balloon: AutorestCore/Exception|"readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"> Installing AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0)"|
    |:speech_balloon: AutorestCore/Exception|"readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"> Installed AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"|


    The following errors/warnings exist before current PR submission:

    Rule Message
    PreCheck/DuplicateSchema "readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"Duplicate Schema named ExternalSecuritySolutionKind -- type: undefined => "string",
    properties: "kind":"x-ms-enum":"name":"ExternalSecuritySolutionKind",
    "modelAsString":true,
    "values":["value":"CEF",
    "value":"ATA",
    "value":"AAD"],
    "$ref":"#/components/schemas/ExternalSecuritySolutionKind",
    "description":"The kind of the external solution" =>,
    enum: undefined => ["CEF",
    "ATA",
    "AAD"],
    x-ms-enum: undefined => "name":"ExternalSecuritySolutionKind",
    "modelAsString":true,
    "values":["value":"CEF",
    "value":"ATA",
    "value":"AAD"] ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"Duplicate Schema named AadConnectivityState -- type: undefined => "string",
    properties: "connectivityState":"x-ms-enum":"name":"AadConnectivityState",
    "modelAsString":true,
    "values":["value":"Discovered",
    "value":"NotLicensed",
    "value":"Connected"],
    "$ref":"#/components/schemas/AadConnectivityState" =>,
    title: undefined => "The connectivity state of the external AAD solution ",
    enum: undefined => ["Discovered",
    "NotLicensed",
    "Connected"],
    x-ms-enum: undefined => "name":"AadConnectivityState",
    "modelAsString":true,
    "values":["value":"Discovered",
    "value":"NotLicensed",
    "value":"Connected"] ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    AutorestCore/Exception "readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"Error: Plugin prechecker reported failure."
    PreCheck/DuplicateSchema "readme":"security/resource-manager/readme.md",
    "tag":"package-2020-01-only",
    "details":"Duplicate Schema named ExternalSecuritySolutionKind -- type: undefined => "string",
    properties: "kind":"x-ms-enum":"name":"ExternalSecuritySolutionKind",
    "modelAsString":true,
    "values":["value":"CEF",
    "value":"ATA",
    "value":"AAD"],
    "$ref":"#/components/schemas/ExternalSecuritySolutionKind",
    "description":"The kind of the external solution" =>,
    enum: undefined => ["CEF",
    "ATA",
    "AAD"],
    x-ms-enum: undefined => "name":"ExternalSecuritySolutionKind",
    "modelAsString":true,
    "values":["value":"CEF",
    "value":"ATA",
    "value":"AAD"] ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"security/resource-manager/readme.md",
    "tag":"package-2020-01-only",
    "details":"Duplicate Schema named AadConnectivityState -- type: undefined => "string",
    properties: "connectivityState":"x-ms-enum":"name":"AadConnectivityState",
    "modelAsString":true,
    "values":["value":"Discovered",
    "value":"NotLicensed",
    "value":"Connected"],
    "$ref":"#/components/schemas/AadConnectivityState" =>,
    title: undefined => "The connectivity state of the external AAD solution ",
    enum: undefined => ["Discovered",
    "NotLicensed",
    "Connected"],
    x-ms-enum: undefined => "name":"AadConnectivityState",
    "modelAsString":true,
    "values":["value":"Discovered",
    "value":"NotLicensed",
    "value":"Connected"] ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    AutorestCore/Exception "readme":"security/resource-manager/readme.md",
    "tag":"package-2020-01-only",
    "details":"Error: Plugin prechecker reported failure."
    💬 AutorestCore/Exception "readme":"security/resource-manager/readme.md",
    "tag":"package-composite-v3",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    💬 AutorestCore/Exception "readme":"security/resource-manager/readme.md",
    "tag":"package-2020-01-only",
    "details":"> Loading AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"
    💬 AutorestCore/Exception "readme":"security/resource-manager/readme.md",
    "tag":"package-2020-01-only",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    "enum": [
    false,
    true
    ],
    Copy link
    Member

    Choose a reason for hiding this comment

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

    type 'boolean' only has two kinds of valuses : 'true' and 'false'. So there is no need to define it redundantly.

    Copy link
    Member

    Choose a reason for hiding this comment

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

    @ArcturusZhang @weidongxu-microsoft @dw511214992 @allenjzhang
    We delete redundant enum definition for 'boolean', please check whether it influence your language.

    @weidongxu-microsoft
    Copy link
    Member

    OK for Java. We haven't released yet.

    @msyyc msyyc requested a review from bar810 June 9, 2021 06:14
    @msyyc msyyc merged commit dba84d7 into Azure:master Jun 15, 2021
    asager pushed a commit to asager/azure-rest-api-specs that referenced this pull request Jun 24, 2021
    * sql t2 readme config
    
    * readme config
    
    * Update readme.python.md
    
    * conflient resolve
    
    * security t2 config
    
    * modelerfour config
    
    * Delete duplicate JSON files
    
    * del test
    
    * Update readme.md
    
    * directive x-ms-enum
    
    * delete redundant definition
    
    Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * sql t2 readme config
    
    * readme config
    
    * Update readme.python.md
    
    * conflient resolve
    
    * security t2 config
    
    * modelerfour config
    
    * Delete duplicate JSON files
    
    * del test
    
    * Update readme.md
    
    * directive x-ms-enum
    
    * delete redundant definition
    
    Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    4 participants