The open_api API documentation library is giving "internal server error"

It looks your user resource is two things:

  1. missing json_api declaration
  json_api do
    type("user")
  end
  1. and the use of extensions: [AshJsonApi.Resource]
  use Ash.Resource,
    domain: ProjectManagement.Account,
    data_layer: AshPostgres.DataLayer,
    extensions: [AshJsonApi.Resource]

Adding both should fix the error.