We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Request bodies should not be optional
export interface AnalyzeDocumentBodyParam { /** Analyze request parameters. */ body?: AnalyzeDocumentRequest; }
Source https://github.com/Azure/azure-rest-api-specs/blob/eaf8b6f8e3ae429c8100471a9772a4bee9a5e472/specification/ai/DocumentIntelligence/routes.tsp#L161-L174
The text was updated successfully, but these errors were encountered:
@HarshaNalluru Just curious why the body should not be optional, I notice the typespec def is optional
analyzeDocument is DocumentIntelligenceLongRunningOperation< { ...DocumentModelAnalyzeRequestParams; @doc("Input content type") @header contentType: "application/json"; @doc("Analyze request parameters.") @body analyzeRequest?: AnalyzeDocumentRequest; // <========== Here is optional body }, AnalyzeResultOperation >;
Sorry, something went wrong.
@HarshaNalluru close this because this is by design and let me know if any concern.
MaryGao
No branches or pull requests
Request bodies should not be optional
Source https://github.com/Azure/azure-rest-api-specs/blob/eaf8b6f8e3ae429c8100471a9772a4bee9a5e472/specification/ai/DocumentIntelligence/routes.tsp#L161-L174
The text was updated successfully, but these errors were encountered: