feat(exports): add rule operand references (#1726)

* feat(exports): add rule operand references

* fix(exports): preserve rule operand references

* refactor(exports): simplify rule operand branches

* refactor(validation): centralize UUID format checks

* fix(imports): preserve false rule operands
This commit is contained in:
ghost
2026-05-12 12:29:29 -07:00
committed by GitHub
parent 2a0fcd4fae
commit 0ab3b0b698
8 changed files with 261 additions and 34 deletions

View File

@@ -3,14 +3,11 @@
class Api::V1::BaseController < ApplicationController
include Doorkeeper::Rails::Helpers
UUID_PATTERN = /\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/i
private_constant :UUID_PATTERN
InvalidFilterError = Class.new(StandardError)
class << self
def valid_uuid?(value)
value.to_s.match?(UUID_PATTERN)
UuidFormat.valid?(value)
end
end