@@ -7039,6 +7039,8 @@ components:
70397039 description: The programming language of the source code.
70407040 example: python
70417041 type: string
7042+ options:
7043+ $ref: "#/components/schemas/AnalysisRequestOptions"
70427044 rules:
70437045 description: The list of static analysis rules to apply during analysis.
70447046 items:
@@ -7060,6 +7062,20 @@ components:
70607062 type: string
70617063 x-enum-varnames:
70627064 - ANALYSIS_REQUEST
7065+ AnalysisRequestOptions:
7066+ description: |-
7067+ Analyzer options sent by browser-based clients. Accepted but ignored: the API always runs
7068+ the analysis with tree-sitter enabled and rule output logged.
7069+ properties:
7070+ log_output:
7071+ description: Whether to capture the output logged by rules during execution. Ignored by this operation.
7072+ example: true
7073+ type: boolean
7074+ use_tree_sitter:
7075+ description: Whether to use tree-sitter to parse the source code. Ignored by this operation.
7076+ example: true
7077+ type: boolean
7078+ type: object
70637079 AnalysisRequestRule:
70647080 additionalProperties: {}
70657081 description: |-
@@ -29880,9 +29896,7 @@ components:
2988029896 example: foobarbaz
2988129897 type: string
2988229898 last_revision:
29883- $ref: "#/components/schemas/CustomRuleRevisionEmbedded"
29884- description: Most recent revision of the rule, or null when the rule has no revisions.
29885- nullable: true
29899+ $ref: "#/components/schemas/CustomRuleNullableRevisionEmbedded"
2988629900 name:
2988729901 description: Rule name
2988829902 example: my-rule
@@ -29907,6 +29921,125 @@ components:
2990729921 type: string
2990829922 x-enum-varnames:
2990929923 - CUSTOM_RULE
29924+ CustomRuleNullableRevisionEmbedded:
29925+ description: The most recent revision of the rule, or null when the rule has no revisions.
29926+ nullable: true
29927+ properties:
29928+ arguments:
29929+ description: Rule arguments
29930+ items:
29931+ $ref: "#/components/schemas/Argument"
29932+ nullable: true
29933+ type: array
29934+ category:
29935+ $ref: "#/components/schemas/CustomRuleRevisionAttributesCategory"
29936+ checksum:
29937+ description: Code checksum
29938+ example: 8a66c4e4e631099ad71be3c1ea3ea8fc2d57193e56db2c296e2dd8a508b26b99
29939+ type: string
29940+ code:
29941+ description: Rule code
29942+ example: Y29uZHVjdG9yOgogICAgLSBkZXBsb3lfb25seTogdHJ1ZQ==
29943+ type: string
29944+ created_at:
29945+ description: Creation timestamp
29946+ example: "2026-01-09T13:00:57.473141Z"
29947+ format: date-time
29948+ type: string
29949+ created_by:
29950+ description: Creator identifier
29951+ example: foobarbaz
29952+ type: string
29953+ creation_message:
29954+ description: Revision creation message
29955+ example: Initial revision
29956+ type: string
29957+ cve:
29958+ description: Associated CVE. Omitted when the revision has no associated CVE.
29959+ example: CVE-2024-1234
29960+ type: string
29961+ cwe:
29962+ description: Associated CWE. Omitted when the revision has no associated CWE.
29963+ example: CWE-79
29964+ type: string
29965+ description:
29966+ description: Full description
29967+ example: bG9uZyBkZXNjcmlwdGlvbg==
29968+ type: string
29969+ documentation_url:
29970+ description: Documentation URL. Omitted when the revision has no documentation URL.
29971+ example: https://docs.example.com/rules/my-rule
29972+ type: string
29973+ id:
29974+ description: Revision identifier
29975+ example: revision-123
29976+ type: string
29977+ is_published:
29978+ description: Whether the revision is published
29979+ example: false
29980+ type: boolean
29981+ is_testing:
29982+ description: Whether this is a testing revision
29983+ example: false
29984+ type: boolean
29985+ language:
29986+ $ref: "#/components/schemas/Language"
29987+ severity:
29988+ $ref: "#/components/schemas/CustomRuleRevisionAttributesSeverity"
29989+ short_description:
29990+ description: Short description
29991+ example: c2hvcnQgZGVzY3JpcHRpb24=
29992+ type: string
29993+ should_use_ai_fix:
29994+ description: Whether to use AI for fixes
29995+ example: false
29996+ type: boolean
29997+ tags:
29998+ description: Rule tags
29999+ example:
30000+ - security
30001+ - custom
30002+ items:
30003+ description: A tag attached to the rule.
30004+ type: string
30005+ nullable: true
30006+ type: array
30007+ tests:
30008+ description: Rule tests
30009+ items:
30010+ $ref: "#/components/schemas/CustomRuleRevisionTest"
30011+ nullable: true
30012+ type: array
30013+ tree_sitter_query:
30014+ description: Tree-sitter query
30015+ example: Y29uZHVjdG9yOgogICAgLSBkZXBsb3lfb25seTogdHJ1ZQ==
30016+ type: string
30017+ version_id:
30018+ description: Monotonically increasing version number of the revision.
30019+ example: 1
30020+ format: int64
30021+ type: integer
30022+ required:
30023+ - id
30024+ - version_id
30025+ - creation_message
30026+ - short_description
30027+ - description
30028+ - code
30029+ - checksum
30030+ - language
30031+ - tree_sitter_query
30032+ - created_at
30033+ - created_by
30034+ - severity
30035+ - category
30036+ - arguments
30037+ - tests
30038+ - tags
30039+ - is_published
30040+ - should_use_ai_fix
30041+ - is_testing
30042+ type: object
2991030043 CustomRuleRequest:
2991130044 description: Request body for creating or updating a custom rule.
2991230045 properties:
0 commit comments