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

Upgrade compiler version && Support encode for type duration and datetime #1829

Merged
merged 19 commits into from
May 12, 2023

Conversation

MaryGao
Copy link
Member

@MaryGao MaryGao commented Apr 26, 2023

fixes #1828

  • Upgrade compiler to v0.44
  • Support the @encode decorator and below are cases:
model SimpleModel {
      @encode("rfc3339")
      createdAt: utcDateTime;                   // TypeScript type: as usual
}

model SimpleModel {
      @encode("unixTimestamp", int32)
      createdAt: utcDateTime;                 // TypeScript type: number
}

model SimpleModel {
      @encode("seconds", float64)
      prop: duration;                         // TypeScript type: number
}

model SimpleModel {
      @encode("ISO8601")
      prop: duration;                       // TypeScript type: string
}

@MaryGao MaryGao changed the title Fix the duration issue Support encode for type duration and datetime May 10, 2023
@MaryGao MaryGao changed the title Support encode for type duration and datetime Upgrade compiler version && Support encode for type duration and datetime May 11, 2023
@MaryGao MaryGao requested a review from qiaozha May 11, 2023 09:13
@MaryGao MaryGao force-pushed the support-different-duration branch from 4c48e40 to 72db2e1 Compare May 12, 2023 03:14
@MaryGao MaryGao merged commit 9e5e126 into Azure:main May 12, 2023
export interface LockTokenInputOutput {
/** LockToken */
lockTokens: string[];
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Issue is tracked here: #1842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DPG] Upgrade compiler to 0.44 and Support encode including duration
2 participants