Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
414 changes: 414 additions & 0 deletions BiatecTokensApi/Controllers/TokenRegistryController.cs

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions BiatecTokensApi/Models/ErrorCodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,26 @@ public static class ErrorCodes
/// Token standard not supported
/// </summary>
public const string TOKEN_STANDARD_NOT_SUPPORTED = "TOKEN_STANDARD_NOT_SUPPORTED";

// Additional error codes for token registry
/// <summary>
/// Invalid request parameters
/// </summary>
public const string InvalidRequest = "INVALID_REQUEST";

/// <summary>
/// Validation failed
/// </summary>
public const string ValidationFailed = "VALIDATION_FAILED";

/// <summary>
/// Internal error occurred
/// </summary>
public const string InternalError = "INTERNAL_ERROR";

/// <summary>
/// Resource not found
/// </summary>
public const string NotFound = "NOT_FOUND";
Comment on lines +201 to +216
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent naming convention for error codes. New error codes use PascalCase (InvalidRequest, ValidationFailed, InternalError, NotFound) while existing codes use UPPER_SNAKE_CASE (TOKEN_STANDARD_NOT_SUPPORTED). This violates the established convention in the codebase. Consider using UPPER_SNAKE_CASE to match existing error codes like INVALID_REQUEST, VALIDATION_FAILED, INTERNAL_ERROR, NOT_FOUND.

Copilot uses AI. Check for mistakes.
}
}
Loading
Loading