From 70bdeedce199781cf1f7f6518cd61eb9c5ac96d1 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:03:40 +0100 Subject: [PATCH 1/4] Generate comments and deprecation info --- templates/api.mustache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/api.mustache b/templates/api.mustache index 0597ec57..01565796 100644 --- a/templates/api.mustache +++ b/templates/api.mustache @@ -1,6 +1,11 @@ require_relative '../service' module Adyen {{#operations}} + + # NOTE: This class is auto generated by OpenAPI Generator + # Ref: https://openapi-generator.tech + # + # Do not edit the class manually. class {{classname}} < Service attr_accessor :service, :version @@ -9,6 +14,10 @@ module Adyen end {{#operation}} + # {{{summary}}}{{^summary}}{{operationId}}{{/summary}}{{#isDeprecated}} + # + # Deprecated {{#vendorExtensions.x-deprecatedInVersion}}since {{#appName}}{{{.}}}{{/appName}} v{{.}}{{/vendorExtensions.x-deprecatedInVersion}}{{#vendorExtensions.x-deprecatedMessage}} + # {{{.}}}{{/vendorExtensions.x-deprecatedMessage}}{{/isDeprecated}} def {{#lambda.snakecase}}{{#vendorExtensions.x-methodName}}{{.}}{{/vendorExtensions.x-methodName}}{{^vendorExtensions.x-methodName}}{{nickname}}{{/vendorExtensions.x-methodName}}{{/lambda.snakecase}}({{#bodyParams}}request, {{/bodyParams}}{{#requiredParams}}{{^isQueryParam}}{{#lambda.snakecase}}{{paramName}}{{/lambda.snakecase}}, {{/isQueryParam}}{{/requiredParams}}headers: {}{{#queryParams}}{{#-first}}, query_params: {}{{/-first}}{{/queryParams}}) endpoint = '{{path}}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') From 5e8981e50e8dc31cb2a75ba0eaa9b39c119598b5 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:04:52 +0100 Subject: [PATCH 2/4] Generate comments and deprecation info --- templates/api-single.mustache | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/api-single.mustache b/templates/api-single.mustache index 8d741db8..8d535189 100644 --- a/templates/api-single.mustache +++ b/templates/api-single.mustache @@ -5,6 +5,11 @@ require_relative '{{serviceName}}/{{#lambda.snakecase}}{{classname}}{{/lambda.sn {{/apiInfo}} module Adyen + + # NOTE: This class is auto generated by OpenAPI Generator + # Ref: https://openapi-generator.tech + # + # Do not edit the class manually. class {{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}} attr_accessor :service, :version From 23b9c39ce454cde4d466fc9d13b79059ca8670a7 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:05:27 +0100 Subject: [PATCH 3/4] Generate comments and deprecation info --- templates/api-small.mustache | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/api-small.mustache b/templates/api-small.mustache index bf9cac27..78e7ce1a 100644 --- a/templates/api-small.mustache +++ b/templates/api-small.mustache @@ -1,6 +1,11 @@ require_relative './service' module Adyen {{#operations}} + + # NOTE: This class is auto generated by OpenAPI Generator + # Ref: https://openapi-generator.tech + # + # Do not edit the class manually. class {{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}} < Service attr_accessor :service, :version @@ -10,6 +15,10 @@ module Adyen end {{#operation}} + # {{{summary}}}{{^summary}}{{operationId}}{{/summary}}{{#isDeprecated}} + # + # Deprecated {{#vendorExtensions.x-deprecatedInVersion}}since {{#appName}}{{{.}}}{{/appName}} v{{.}}{{/vendorExtensions.x-deprecatedInVersion}}{{#vendorExtensions.x-deprecatedMessage}} + # {{{.}}}{{/vendorExtensions.x-deprecatedMessage}}{{/isDeprecated}} def {{#lambda.snakecase}}{{#vendorExtensions.x-methodName}}{{.}}{{/vendorExtensions.x-methodName}}{{^vendorExtensions.x-methodName}}{{nickname}}{{/vendorExtensions.x-methodName}}{{/lambda.snakecase}}({{#bodyParams}}request, {{/bodyParams}}{{#requiredParams}}{{^isQueryParam}}{{#lambda.snakecase}}{{paramName}}{{/lambda.snakecase}}, {{/isQueryParam}}{{/requiredParams}}headers: {}{{#queryParams}}{{#-first}}, query_params: {}{{/-first}}{{/queryParams}}) endpoint = '{{path}}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') From 72f1714994b318fccf96e156093c3fa2b048f77d Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:08:28 +0100 Subject: [PATCH 4/4] Run codeql on cronjob --- .github/workflows/codeql.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 989980f0..6dbf3b0c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,10 +1,6 @@ name: "CodeQL" on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] schedule: - cron: "40 12 * * 0"