Skip to content

AtloriaRequestPanel

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/RequestPanel.ts

Extends: ExplorerElement

Methods

MethodSignatureReturns
connectedCallbackconnectedCallback()void
disconnectedCallbackdisconnectedCallback()void
updatedupdated(changedProperties: Map<string, any>)void
renderrender()void

Properties

PropertyType
stylesany
stringsExplorerStrings
endpointAPIEndpoint
environmentEnvironment
globalAuthTokenstring
paramOptionsUrlstring
operationIdstring
readerApiKeystring
schemasRecord<string, unknown>
presetValuesPresetValues

Where it refuses work

  • AtloriaRequestPanel stops the work with an early return when raw === undefined || raw === null.
  • AtloriaRequestPanel stops the work with an early return when typeof raw === 'boolean'.
  • AtloriaRequestPanel stops the work with an early return when typeof raw === 'object'.
  • AtloriaRequestPanel stops the work with an early return when !this.endpoint.
  • AtloriaRequestPanel stops the work with an early return when !source || !this.paramOptionsUrl || !this.operationId.
  • AtloriaRequestPanel stops the work with an early return when Array.isArray(schema.enum) && schema.enum.length > 0.

When something fails

  • AtloriaRequestPanel handles failure in 3 places: it logs it and continues in 2, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.

Was this page helpful?

Download as PDF