Skip to content

Conversation

@v-jiaodi
Copy link
Member

relate issue : #3635

model Site {
name: string;
}
op test(@body site:Site): File<"application/octet-stream">;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change as following?

Suggested change
op test(@body site:Site): File<"application/octet-stream">;
op test(@body site:Site): {
@header("Content-Type")
contentType: "application/octet-stream";
@doc("Receipt body in COSE format")
@bodyRoot
body: bytes;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HRLC p0 priority 0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants