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

Add unixTimestamp32 to std lib #2543

Closed
timotheeguerin opened this issue Oct 5, 2023 · 1 comment · Fixed by #2579
Closed

Add unixTimestamp32 to std lib #2543

timotheeguerin opened this issue Oct 5, 2023 · 1 comment · Fixed by #2579
Assignees

Comments

@timotheeguerin
Copy link
Member

From design #2371

@encode("unixTimestamp", int32)
scalar unixTimestamp32 extends utcDateTime;
@markcowl
Copy link
Contributor

est: 1

@timotheeguerin timotheeguerin self-assigned this Oct 17, 2023
tjprescott pushed a commit to tjprescott/typespec that referenced this issue Oct 18, 2023
tjprescott pushed a commit to tjprescott/typespec that referenced this issue Oct 18, 2023
tjprescott pushed a commit to tjprescott/typespec that referenced this issue Oct 18, 2023
tjprescott pushed a commit to tjprescott/typespec that referenced this issue Oct 19, 2023
tjprescott pushed a commit to tjprescott/typespec that referenced this issue Oct 19, 2023
tjprescott added a commit that referenced this issue Oct 19, 2023
Fix #2543.

**BREAKING CHANGE** If a spec had something like this:
```
Model Foo {
  ...Foo
  name: string;
}
```

Previously that would have compiled. Now it will throw and error.

---------

Co-authored-by: Timothee Guerin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants