|
|
|
|
|
by _zllx
1408 days ago
|
|
I'm using typebox to validate my JWT payloads in an app I'm working on. Someone showed me this thread while I was working, so I gave it a shot: export const CLAIM_PAYLOAD_SCHEMA = Type.Object({
"iss": Type.Literal("my-app"),
"exp": Type.Integer(),
"sub": Type.String(),
"name": Type.String(),
"priv": Type.Integer({minimum:0, maximum: Privileges.All}),
"gender": Type. // No completion is available.
Additionally, I get "No completion is available." from copilot.el on every line after that one, but completing on lines before it does work. When removing "gender", it works again, e.g. suggesting `"iat": Type.Integer()` for that line. I don't actually plan on using "gender" in my tokens, but it is a bit frustrating that an arbitrary word can opaquely disable Copilot for the rest of the file. |
|