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

Fix union in header query issue #2189

Merged
merged 19 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/rlc-common/src/helpers/valueGenerationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ function mockEnumValues(
) {
const schema = schemaMap.get(type);
if (schema && schema.enum && schema.enum.length > 0) {
const first = schema.enum[0];
return typeof first === "string" ? `"${first}"` : `${first}`;
return schema.enum[0].type;
}
return generateParameterTypeValue(
getUnionType(type),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface UnivariateUnivariateDetectionOptions {
* Used to specify how to deal with missing values in the input series, it's used
* when granularity is not "none".
*
* Possible values: auto, previous, linear, fixed, zero, notFill
* Possible values: "auto", "previous", "linear", "fixed", "zero", "notFill"
*/
imputeMode?: string;
/**
Expand Down Expand Up @@ -179,7 +179,7 @@ export interface MultivariateModelInfo {
* Data schema of input data source: OneTable or MultiTable. The default
* DataSchema is OneTable.
*
* Possible values: OneTable, MultiTable
* Possible values: "OneTable", "MultiTable"
*/
dataSchema?: string;
/**
Expand Down Expand Up @@ -221,7 +221,7 @@ export interface MultivariateAlignPolicy {
* An optional field, indicating how missing values will be filled. One of
* Previous, Subsequent, Linear, Zero, Fixed.
*
* Possible values: Previous, Subsequent, Linear, Zero, Fixed
* Possible values: "Previous", "Subsequent", "Linear", "Zero", "Fixed"
*/
fillNAMethod?: string;
/** An optional field. Required when fillNAMethod is Fixed. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface UnivariateAnomalyDetectorErrorOutput {
/**
* The error code.
*
* Possible values: InvalidCustomInterval, BadArgument, InvalidGranularity, InvalidPeriod, InvalidModelArgument, InvalidSeries, InvalidJsonFormat, RequiredGranularity, RequiredSeries, InvalidImputeMode, InvalidImputeFixedValue
* Possible values: "InvalidCustomInterval", "BadArgument", "InvalidGranularity", "InvalidPeriod", "InvalidModelArgument", "InvalidSeries", "InvalidJsonFormat", "RequiredGranularity", "RequiredSeries", "InvalidImputeMode", "InvalidImputeFixedValue"
*/
code?: string;
/** A message explaining the error reported by the service. */
Expand Down Expand Up @@ -272,7 +272,7 @@ export interface MultivariateModelInfoOutput {
* Data schema of input data source: OneTable or MultiTable. The default
* DataSchema is OneTable.
*
* Possible values: OneTable, MultiTable
* Possible values: "OneTable", "MultiTable"
*/
dataSchema?: string;
/**
Expand Down Expand Up @@ -316,7 +316,7 @@ export interface MultivariateAlignPolicyOutput {
* An optional field, indicating how missing values will be filled. One of
* Previous, Subsequent, Linear, Zero, Fixed.
*
* Possible values: Previous, Subsequent, Linear, Zero, Fixed
* Possible values: "Previous", "Subsequent", "Linear", "Zero", "Fixed"
*/
fillNAMethod?: string;
/** An optional field. Required when fillNAMethod is Fixed. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface OperationStatusOutput {
/**
* The status of the operation
*
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
* Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
*/
status: string;
/** Error object that describes the error when status is "Failed". */
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ChatMessage {
/**
* The role associated with the message.
*
* Possible values: user, system, assistant
* Possible values: "user", "system", "assistant"
*/
role: string;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ChatMessageOutput {
/**
* The role associated with the message.
*
* Possible values: user, system, assistant
* Possible values: "user", "system", "assistant"
*/
role: string;
/**
Expand Down Expand Up @@ -47,7 +47,7 @@ export interface ChoiceDeltaOutput {
/**
* The reason this chat completion completed its generation.
*
* Possible values: stop, length
* Possible values: "stop", "length"
*/
finish_reason?: string;
}
Expand All @@ -59,7 +59,7 @@ export interface ChatMessageDeltaOutput {
/**
* The role associated with the message.
*
* Possible values: user, system, assistant
* Possible values: "user", "system", "assistant"
*/
role?: string;
/**
Expand Down Expand Up @@ -98,7 +98,7 @@ export interface ChatChoiceOutput {
/**
* The reason this chat completion completed its generation.
*
* Possible values: stop, length
* Possible values: "stop", "length"
*/
finish_reason: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface AnalyzeTextOptions {
/**
* The type of text analysis output. If not assigned, the default value is "FourLevels".
*
* Possible values: FourLevels, EightLevels
* Possible values: "FourLevels", "EightLevels"
*/
outputType?: string;
}
Expand All @@ -28,7 +28,7 @@ export interface AnalyzeImageOptions {
/**
* The type of image analysis output. If not assigned, the default value is "FourLevels".
*
* Possible values: FourLevels
* Possible values: "FourLevels"
*/
outputType?: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface AnalyzeTextOptionsOutput {
/**
* The type of text analysis output. If not assigned, the default value is "FourLevels".
*
* Possible values: FourLevels, EightLevels
* Possible values: "FourLevels", "EightLevels"
*/
outputType?: string;
}
Expand Down Expand Up @@ -44,7 +44,7 @@ export interface TextAnalyzeSeverityResultOutput {
/**
* The text category.
*
* Possible values: Hate, SelfHarm, Sexual, Violence
* Possible values: "Hate", "SelfHarm", "Sexual", "Violence"
*/
category: string;
/** This field is decided by outputType in request, if choose "FourLevels", the value could be 0,2,4,6. The higher the severity of input content, the larger this value is. */
Expand All @@ -60,7 +60,7 @@ export interface AnalyzeImageOptionsOutput {
/**
* The type of image analysis output. If not assigned, the default value is "FourLevels".
*
* Possible values: FourLevels
* Possible values: "FourLevels"
*/
outputType?: string;
}
Expand All @@ -84,7 +84,7 @@ export interface ImageAnalyzeSeverityResultOutput {
/**
* The image category.
*
* Possible values: Hate, SelfHarm, Sexual, Violence
* Possible values: "Hate", "SelfHarm", "Sexual", "Violence"
*/
category: string;
/** This field is decided by outputType in request, if choose "FourLevels", the value could be 0,2,4,6. The higher the severity of input content, the larger this value is. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface ResourceOperationStatusOutput {
/**
* The status of the operation
*
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
* Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
*/
status: string;
/** Error object that describes the error when status is "Failed". */
Expand All @@ -45,7 +45,7 @@ export interface OperationStatusOutput {
/**
* The status of the operation
*
* Possible values: NotStarted, Running, Succeeded, Failed, Canceled
* Possible values: "NotStarted", "Running", "Succeeded", "Failed", "Canceled"
*/
status: string;
/** Error object that describes the error when status is "Failed". */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface LivenessSessionOutput {
/**
* The session status.
*
* Possible values: NotStarted, Started, ResultAvailable
* Possible values: "NotStarted", "Started", "ResultAvailable"
*/
status: string;
/** The last result of session. */
Expand Down Expand Up @@ -122,7 +122,7 @@ export interface LivenessWithVerifySessionOutput {
/**
* The session status.
*
* Possible values: NotStarted, Started, ResultAvailable
* Possible values: "NotStarted", "Started", "ResultAvailable"
*/
status: string;
/** The last result of session. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,15 @@ export interface ContactPoint {
/**
* phone | fax | email | pager | url | sms | other
*
* Possible values: phone, fax, email, pager, url, sms, other
* Possible values: "phone", "fax", "email", "pager", "url", "sms", "other"
*/
system?: string;
/** The actual contact point details */
value?: string;
/**
* home | work | temp | old | mobile - purpose of this contact point
*
* Possible values: home, work, temp, old, mobile
* Possible values: "home", "work", "temp", "old", "mobile"
*/
use?: string;
/** Specify preferred order of use (1 = highest) */
Expand All @@ -376,7 +376,7 @@ export interface RecommendationFinding extends Extendible {
/**
* recommendation finding status
*
* Possible values: present, differential, ruleOut, conditional
* Possible values: "present", "differential", "ruleOut", "conditional"
*/
recommendationFindingStatus: string;
}
Expand All @@ -393,7 +393,7 @@ export interface Observation extends DomainResourceParent {
/**
* registered | preliminary | final | amended +
*
* Possible values: registered, preliminary, final, amended, corrected, cancelled, entered-in-error, unknown
* Possible values: "registered", "preliminary", "final", "amended", "corrected", "cancelled", "entered-in-error", "unknown"
*/
status: string;
/** Classification of type of observation */
Expand Down Expand Up @@ -586,7 +586,7 @@ export interface ResearchStudy extends DomainResourceParent {
/**
* active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn
*
* Possible values: active, administratively-completed, approved, closed-to-accrual, closed-to-accrual-and-intervention, completed, disapproved, in-review, temporarily-closed-to-accrual, temporarily-closed-to-accrual-and-intervention, withdrawn
* Possible values: "active", "administratively-completed", "approved", "closed-to-accrual", "closed-to-accrual-and-intervention", "completed", "disapproved", "in-review", "temporarily-closed-to-accrual", "temporarily-closed-to-accrual-and-intervention", "withdrawn"
*/
status: string;
/** treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility */
Expand Down Expand Up @@ -668,7 +668,7 @@ export interface LateralityDiscrepancyInference
/**
* mismatch type
*
* Possible values: orderLateralityMismatch, textLateralityContradiction, textLateralityMissing
* Possible values: "orderLateralityMismatch", "textLateralityContradiction", "textLateralityMissing"
*/
discrepancyType: string;
}
Expand Down Expand Up @@ -863,7 +863,7 @@ export interface PatientInfo {
/**
* The patient's sex.
*
* Possible values: female, male, unspecified
* Possible values: "female", "male", "unspecified"
*/
sex?: string;
/** The patient's date of birth. */
Expand All @@ -884,7 +884,7 @@ export interface Encounter {
/**
* The class of the encounter.
*
* Possible values: inpatient, ambulatory, observation, emergency, virtual, healthHome
* Possible values: "inpatient", "ambulatory", "observation", "emergency", "virtual", "healthHome"
*/
class?: string;
}
Expand All @@ -902,13 +902,13 @@ export interface PatientDocument {
/**
* The type of the patient document, such as 'note' (text document) or 'fhirBundle' (FHIR JSON document).
*
* Possible values: note, fhirBundle, dicom, genomicSequencing
* Possible values: "note", "fhirBundle", "dicom", "genomicSequencing"
*/
type: string;
/**
* The type of the clinical document.
*
* Possible values: consultation, dischargeSummary, historyAndPhysical, radiologyReport, procedure, progress, laboratory, pathologyReport
* Possible values: "consultation", "dischargeSummary", "historyAndPhysical", "radiologyReport", "procedure", "progress", "laboratory", "pathologyReport"
*/
clinicalType?: string;
/** A given identifier for the document. Has to be unique across all documents for a single patient. */
Expand All @@ -922,7 +922,7 @@ export interface PatientDocument {
/**
* specialty type the document
*
* Possible values: pathology, radiology
* Possible values: "pathology", "radiology"
*/
specialtyType?: string;
/** Administrative metadata for the document. */
Expand Down Expand Up @@ -954,7 +954,7 @@ export interface DocumentContent {
* In case the source type is 'inline', the content is given as a string (for instance, text).
* In case the source type is 'reference', the content is given as a URI.
*
* Possible values: inline, reference
* Possible values: "inline", "reference"
*/
sourceType: string;
/** The content of the document, given either inline (as a string) or as a reference (URI). */
Expand Down
Loading
Loading