Skip to content

fix: remove primary_key/0 from gen_auth schema templates#53

Merged
Taure merged 2 commits intonovaframework:masterfrom
Taure:fix/gen-auth-remove-pk-callback
Feb 27, 2026
Merged

fix: remove primary_key/0 from gen_auth schema templates#53
Taure merged 2 commits intonovaframework:masterfrom
Taure:fix/gen-auth-remove-pk-callback

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented Feb 27, 2026

Summary

  • Remove primary_key/0 export and function from generated user and user_token schemas in gen_auth
  • Aligns with kura#26 which removed the primary_key/0 callback from kura_schema

Test plan

  • Run rebar3 nova gen_auth and verify generated schemas compile without warnings

🤖 Generated with Claude Code

Taure and others added 2 commits February 27, 2026 09:23
…sponses

Routes with `extra_state => #{json_schema => "./schemas/post.json"}` now
generate $ref links in the OpenAPI spec — requestBody for POST/PUT/PATCH
and response content schemas for all methods with a schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The primary_key/0 callback was removed from kura_schema (kura#26).
Generated schemas now use only #kura_field{primary_key = true}.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Taure Taure merged commit 1b42542 into novaframework:master Feb 27, 2026
1 check passed
@Taure Taure deleted the fix/gen-auth-remove-pk-callback branch February 27, 2026 14:03
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.

1 participant