Skip to content

feat: normalize RIDL method block formatting - #27

Merged
david-littlefarmer merged 4 commits into
masterfrom
feat/migrate-above-method-annotations
Oct 22, 2026
Merged

david-littlefarmer merged 4 commits into
masterfrom
feat/migrate-above-method-annotations

Conversation

@david-littlefarmer

@david-littlefarmer david-littlefarmer commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Formats method blocks as routes (GET, QUERY, POST, PUT, PATCH, DELETE), then success, errors, and annotations. Aligns route paths and success/error values:

  - AllHTTPMethods(userID: uint64) => (user: User)
    + GET    /route-order/users/{userID}
    + QUERY  /route-order/users/{userID}
    + POST   /route-order/users/{userID}
    + PUT    /route-order/users/{userID}
    + PATCH  /route-order/users/{userID}
    + DELETE /route-order/users/{userID}
    + success 200
    + error   UserNotFound|InvalidName
    + @auth = ApiKeyAuth
    + @internal

Migrates above-method annotations (including @success), preserves comments and same-verb route order, and fixes quoted @ values and email addresses. Includes a deliberately shuffled example and regression tests.

Validation: go test ./..., go vet ./..., and parser/idempotence checks on all 21 upstream schemas.

Order routes by GET, POST, PUT, PATCH, DELETE and QUERY, followed by
success options, error options and annotations. Keep routes with the
same verb in their original order and carry comments with each entry.

Migrate above-method success annotations and preserve quoted at signs,
email addresses and documentation indentation during migration.
@david-littlefarmer
david-littlefarmer merged commit 7239726 into master Oct 22, 2026
1 check passed
@david-littlefarmer
david-littlefarmer deleted the feat/migrate-above-method-annotations branch October 22, 2026 11:23
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.

2 participants