silverwind

Results 1264 comments of silverwind

Seems useful sometimes. I think the rule should not trigger when the string in question contains other escape sequences besides `\\` because using `String.raw` on that would break those other...

I tired to enable this rule, but ended up disabling it because the only cases where I use backslashes is in RegExp strings like `"[^\\/]"`, and I found the readability...

No HTTP method strictly forbids a body, and there are definitely examples of APIs that accept a body on GET, like [elasticsearch](https://www.elastic.co/guide/en/elasticsearch/guide/current/_empty_search.html#get_vs_post).

Interesting, didn't know that. I guess some implemententations may opt to not implement that step, but for a general case, it seems good to have the rule for it then....

Being able to define a `unit` for time periods would be very useful: ```yml uptime: type: integer unit: microseconds example: 50 ``` Some possibly useful spec text [here](https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check#name-observedunit).

More standardization would be nice tought, so that for example a UI can render `9124 seconds` as `2 hours, 31 minutes`. Deep integration like that can only happen with some...

> What are you expecting JSON Schema to do with a unit keyword? To define it in the spec with possible pointers to other documents/specs that standardize unit names. In...

I just had a commit I pushed to a contributor's branch eliminated because they carelessly force-pushed over it. Would definitely appreciate an option to disable force-push in pull request branches...

I think we should raise the MSSQL requirement to 2016 for v1.23, e.g. follow the "Security Support" category of https://endoflife.date/mssqlserver.

> 2 approvements can be done later. > > * wait for xorm support checking whether index exists > > * raise the MSSQL requirement to 2016 for v1.23 https://github.com/go-gitea/gitea/pull/30949...