LianLian Global · API Governance Rules

LianLian Global API Rules

Spectral linting rules defining API design standards and conventions for LianLian Global.

43 Rules error 23 warn 15 info 5
Generated by API Evangelist Written by API Evangelist tooling for LianLian Global's APIs. It is a starting point, not a ruleset LianLian Global publishes or enforces.
View Rules File View on GitHub

Rule Categories

contact header info mediatype oauthflow operation parameter path requestbody response schema securityscheme server servers tag write

Rules

error
operation-has-operationid
Every operation declares an operationId (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-summary
Every operation has a summary (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-tags
Every operation is tagged (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-success-response
Every operation declares a 2xx response (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
path-segment-casing-kebab
Path segments are kebab case (measured: 92% of this contract)
$.paths[*]~
warn
path-no-trailing-slash
Paths carry no trailing slash (measured: 99% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
info
servers-https
Servers are https (measured: 84% of this contract)
$.servers[*].url
warn
write-declares-request-body
POST and PUT declare a request body (measured: 98% of this contract)
$.paths[*][post,put]
warn
response-media-type
Responses are served as application/json (measured: 98% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
warn
schema-has-description
Every component schema carries a title or description (measured: 98% of this contract)
$.components.schemas[*]
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 9 characters (measured: 97% of this contract)
$.info.title
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
error
contact-email-present
Contact declares email (measured: 100% of this contract)
$.info.contact
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
info
server-url-https
Server.url is https (measured: 84% of this contract)
$.servers[*].url
error
tag-name-present
Tag declares name (measured: 100% of this contract)
$.tags[*]
error
operation-tags-present
Operation declares tags (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-summary-present
Operation declares summary (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-summary-min-length
Operation.summary runs at least 4 characters (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
error
operation-operationid-present
Operation declares operationId (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
parameter-in-values
Parameter.in is one of header, query (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-min-length
Parameter.description runs at least 2 characters (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
error
requestbody-content-present
RequestBody declares content (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
warn
mediatype-schema-present
MediaType declares schema (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
warn
response-description-present
Response declares description (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
error
header-schema-present
Header declares schema (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].headers[*]
warn
schema-title-present
Schema declares title (measured: 99% of this contract)
$.components.schemas[*]
warn
schema-type-present
Schema declares type (measured: 99% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object, string (measured: 96% of this contract)
$.components.schemas[*].type
info
schema-properties-present
Schema declares properties (measured: 88% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
warn
securityscheme-type-values
SecurityScheme.type is one of apiKey, oauth2 (measured: 97% of this contract)
$.components.securitySchemes[*].type
info
securityscheme-description-present
SecurityScheme declares description (measured: 83% of this contract)
$.components.securitySchemes[*]
error
securityscheme-in-values
SecurityScheme.in is one of header (measured: 100% of this contract)
$.components.securitySchemes[*].in
error
securityscheme-scheme-values
SecurityScheme.scheme is one of basic (measured: 100% of this contract)
$.components.securitySchemes[*].scheme
info
securityscheme-flows-present
SecurityScheme declares flows (measured: 83% of this contract)
$.components.securitySchemes[*]
error
oauthflow-tokenurl-present
OAuthFlow declares tokenUrl (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]
error
oauthflow-refreshurl-present
OAuthFlow declares refreshUrl (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]
error
oauthflow-scopes-present
OAuthFlow declares scopes (measured: 100% of this contract)
$.components.securitySchemes[*].flows[*]

Spectral Ruleset

Raw ↑
# authorship: generated by API Evangelist tooling (derive-rules.py, 2026-11-01). x-method: generated
# Every rule below was MEASURED against LianLian Global's own contract before it was written; a rule is present only
# when the contract satisfies it at 80% or more. Severity: 100% -> error, >= 90% -> warn, else info.
# Provenance:
#   - operation-has-operationid: 100%
#   - operation-has-summary: 100%
#   - operation-has-tags: 100%
#   - operation-has-success-response: 100%
#   - path-segment-casing-kebab: 92%
#   - path-no-trailing-slash: 100%
#   - path-params-in-braces: 100%
#   - servers-https: 84%
#   - write-declares-request-body: 98%
#   - response-media-type: 99%
#   - schema-has-description: 98%
#   - info-title-present: 100%
#   - info-title-min-length: 98%
#   - info-version-present: 100%
#   - info-version-semver: 100%
#   - contact-email-present: 100%
#   - server-url-present: 100%
#   - server-url-https: 84%
#   - tag-name-present: 100%
#   - operation-tags-present: 100%
#   - operation-summary-present: 100%
#   - operation-summary-min-length: 99%
#   - operation-operationid-present: 100%
#   - operation-responses-present: 100%
#   - parameter-in-values: 99%
#   - parameter-description-min-length: 100%
#   - requestbody-content-present: 100%
#   - mediatype-schema-present: 99%
#   - response-description-present: 99%
#   - header-schema-present: 100%
#   - schema-title-present: 99%
#   - schema-type-present: 99%
#   - schema-type-values: 97%
#   - schema-properties-present: 88%
#   - securityscheme-type-present: 100%
#   - securityscheme-type-values: 97%
#   - securityscheme-description-present: 83%
#   - securityscheme-in-values: 100%
#   - securityscheme-scheme-values: 100%
#   - securityscheme-flows-present: 83%
#   - oauthflow-tokenurl-present: 100%
#   - oauthflow-refreshurl-present: 100%
#   - oauthflow-scopes-present: 100%
x-method: generated
x-generator: derive-rules.py
x-generated: '2026-11-01'
x-source:
- openapi/lianlian-global-account-api-openapi.yml
- openapi/lianlian-global-accounts-api-openapi.yml
- openapi/lianlian-global-agreement-api-openapi.yml
- openapi/lianlian-global-balance-api-openapi.yml
- openapi/lianlian-global-beneficiaries-api-openapi.yml
x-self-check:
  status: checked
  rules: 46
  dropped:
    parameter-name-present: claims 100%, failed 72
    parameter-in-present: claims 100%, failed 72
    parameter-schema-present: claims 100%, failed 72
extends:
- - spectral:oas
  - recommended
formats:
- oas3
rules:
  operation-has-operationid:
    description: 'Every operation declares an operationId (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
    x-pattern-key: Operation.operationId|present
  operation-has-summary:
    description: 'Every operation has a summary (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: summary
      function: truthy
    x-pattern-key: Operation.summary|present
  operation-has-tags:
    description: 'Every operation is tagged (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: tags
      function: truthy
    x-pattern-key: Operation.tags|present
  operation-has-success-response:
    description: 'Every operation declares a 2xx response (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,post,put,patch,delete].responses
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          patternProperties:
            ^2\d\d$: {}
          minProperties: 1
    x-pattern-key: Operation.responses|schema:07e20b47
  path-segment-casing-kebab:
    description: 'Path segments are kebab case (measured: 92% of this contract)'
    severity: warn
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: ^(/[a-z0-9]+(-[a-z0-9]+)*|/\{[^}]+\})+/?$
    x-pattern-key: Paths.{key}|pattern:^(/[a-z0-9]+(-[a-z0-9]+)*|/\{[^}]+\})+/?$
  path-no-trailing-slash:
    description: 'Paths carry no trailing slash (measured: 99% of this contract)'
    severity: warn
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        notMatch: ./$
    x-pattern-key: Paths.{key}|pattern:!./$
  path-params-in-braces:
    description: 'Path parameters use {braces}, not :colon (measured: 100% of this contract)'
    severity: error
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        notMatch: ':'
    x-pattern-key: 'Paths.{key}|pattern:!:'
  servers-https:
    description: 'Servers are https (measured: 84% of this contract)'
    severity: info
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: ^(https://|\{)
    x-pattern-key: Server.url|pattern:^(https://|\{)
  write-declares-request-body:
    description: 'POST and PUT declare a request body (measured: 98% of this contract)'
    severity: warn
    given: $.paths[*][post,put]
    then:
      field: requestBody
      function: truthy
    x-pattern-key: Operation.requestBody|present
  response-media-type:
    description: 'Responses are served as application/json (measured: 98% of this contract)'
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].responses[*].content
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required:
          - application/json
    x-pattern-key: Response.content|schema:2919cf38
  schema-has-description:
    description: 'Every component schema carries a title or description (measured: 98% of this contract)'
    severity: warn
    given: $.components.schemas[*]
    then:
      function: schema
      functionOptions:
        schema:
          anyOf:
          - required:
            - description
          - required:
            - title
    x-pattern-key: Components.schemas|schema:7af42428
  info-title-present:
    description: 'Info declares title (measured: 100% of this contract)'
    severity: error
    given: $.info
    then:
      field: title
      function: defined
    x-pattern-key: Info.title|present
  info-title-min-length:
    description: 'Info.title runs at least 9 characters (measured: 97% of this contract)'
    severity: warn
    given: $.info.title
    then:
      function: length
      functionOptions:
        min: 9
    x-pattern-key: Info.title|length
  info-version-present:
    description: 'Info declares version (measured: 100% of this contract)'
    severity: error
    given: $.info
    then:
      field: version
      function: defined
    x-pattern-key: Info.version|present
  info-version-semver:
    description: 'info.version is numeric (measured: 100% of this contract)'
    severity: error
    given: $.info.version
    then:
      function: pattern
      functionOptions:
        match: ^v?\d+(\.\d+)*
    x-pattern-key: Info.version|pattern:^v?\d+(\.\d+)*
  contact-email-present:
    description: 'Contact declares email (measured: 100% of this contract)'
    severity: error
    given: $.info.contact
    then:
      field: email
      function: defined
    x-pattern-key: Contact.email|present
  server-url-present:
    description: 'Server declares url (measured: 100% of this contract)'
    severity: error
    given: $.servers[*]
    then:
      field: url
      function: defined
    x-pattern-key: Server.url|present
  server-url-https:
    description: 'Server.url is https (measured: 84% of this contract)'
    severity: info
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: ^https://
    x-pattern-key: Server.url|pattern:^https://
  tag-name-present:
    description: 'Tag declares name (measured: 100% of this contract)'
    severity: error
    given: $.tags[*]
    then:
      field: name
      function: defined
    x-pattern-key: Tag.name|present
  operation-tags-present:
    description: 'Operation declares tags (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace]
    then:
      field: tags
      function: defined
    x-pattern-key: Operation.tags|present
  operation-summary-present:
    description: 'Operation declares summary (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace]
    then:
      field: summary
      function: defined
    x-pattern-key: Operation.summary|present
  operation-summary-min-length:
    description: 'Operation.summary runs at least 4 characters (measured: 98% of this contract)'
    severity: warn
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].summary
    then:
      function: length
      functionOptions:
        min: 4
    x-pattern-key: Operation.summary|length
  operation-operationid-present:
    description: 'Operation declares operationId (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace]
    then:
      field: operationId
      function: defined
    x-pattern-key: Operation.operationId|present
  operation-responses-present:
    description: 'Operation declares responses (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace]
    then:
      field: responses
      function: defined
    x-pattern-key: Operation.responses|present
  parameter-in-values:
    description: 'Parameter.in is one of header, query (measured: 98% of this contract)'
    severity: warn
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
    then:
      function: enumeration
      functionOptions:
        values:
        - header
        - query
    x-pattern-key: Parameter.in|enum:header,query
  parameter-description-min-length:
    description: 'Parameter.description runs at least 2 characters (measured: 99% of this contract)'
    severity: warn
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].description
    then:
      function: length
      functionOptions:
        min: 2
    x-pattern-key: Parameter.description|length
  requestbody-content-present:
    description: 'RequestBody declares content (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
    then:
      field: content
      function: defined
    x-pattern-key: RequestBody.content|present
  mediatype-schema-present:
    description: 'MediaType declares schema (measured: 99% of this contract)'
    severity: warn
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
    then:
      field: schema
      function: defined
    x-pattern-key: MediaType.schema|present
  response-description-present:
    description: 'Response declares description (measured: 99% of this contract)'
    severity: warn
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
    then:
      field: description
      function: defined
    x-pattern-key: Response.description|present
  header-schema-present:
    description: 'Header declares schema (measured: 100% of this contract)'
    severity: error
    given: $.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].headers[*]
    then:
      field: schema
      function: defined
    x-pattern-key: Header.schema|present
  schema-title-present:
    description: 'Schema declares title (measured: 99% of this contract)'
    severity: warn
    given: $.components.schemas[*]
    then:
      field: title
      function: defined
    x-pattern-key: Schema.title|present
  schema-type-present:
    description: 'Schema declares type (measured: 99% of this contract)'
    severity: warn
    given: $.components.schemas[*]
    then:
      field: type
      function: defined
    x-pattern-key: Schema.type|present
  schema-type-values:
    description: 'Schema.type is one of object, string (measured: 96% of this contract)'
    severity: warn
    given: $.components.schemas[*].type
    then:
      function: enumeration
      functionOptions:
        values:
        - object
        - string
    x-pattern-key: Schema.type|enum:object,string
  schema-properties-present:
    description: 'Schema declares properties (measured: 88% of this contract)'
    severity: info
    given: $.components.schemas[*]
    then:
      field: properties
      function: defined
    x-pattern-key: Schema.properties|present
  securityscheme-type-present:
    description: 'SecurityScheme declares type (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*]
    then:
      field: type
      function: defined
    x-pattern-key: SecurityScheme.type|present
  securityscheme-type-values:
    description: 'SecurityScheme.type is one of apiKey, oauth2 (measured: 97% of this contract)'
    severity: warn
    given: $.components.securitySchemes[*].type
    then:
      function: enumeration
      functionOptions:
        values:
        - apiKey
        - oauth2
    x-pattern-key: SecurityScheme.type|enum:apiKey,oauth2
  securityscheme-description-present:
    description: 'SecurityScheme declares description (measured: 83% of this contract)'
    severity: info
    given: $.components.securitySchemes[*]
    then:
      field: description
      function: defined
    x-pattern-key: SecurityScheme.description|present
  securityscheme-in-values:
    description: 'SecurityScheme.in is one of header (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*].in
    then:
      function: enumeration
      functionOptions:
        values:
        - header
    x-pattern-key: SecurityScheme.in|enum:header
  securityscheme-scheme-values:
    description: 'SecurityScheme.scheme is one of basic (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*].scheme
    then:
      function: enumeration
      functionOptions:
        values:
        - basic
    x-pattern-key: SecurityScheme.scheme|enum:basic
  securityscheme-flows-present:
    description: 'SecurityScheme declares flows (measured: 83% of this contract)'
    severity: info
    given: $.components.securitySchemes[*]
    then:
      field: flows
      function: defined
    x-pattern-key: SecurityScheme.flows|present
  oauthflow-tokenurl-present:
    description: 'OAuthFlow declares tokenUrl (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*].flows[*]
    then:
      field: tokenUrl
      function: defined
    x-pattern-key: OAuthFlow.tokenUrl|present
  oauthflow-refreshurl-present:
    description: 'OAuthFlow declares refreshUrl (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*].flows[*]
    then:
      field: refreshUrl
      function: defined
    x-pattern-key: OAuthFlow.refreshUrl|present
  oauthflow-scopes-present:
    description: 'OAuthFlow declares scopes (measured: 100% of this contract)'
    severity: error
    given: $.components.securitySchemes[*].flows[*]
    then:
      field: scopes
      function: defined
    x-pattern-key: OAuthFlow.scopes|present

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/lianlian-global-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.