leodido / go-urn

Parser for uniform resource names as seen on RFC 8141, RFC 2141, and RFC 7643
MIT License
87 stars 11 forks source link

feat: support SCIM (RFC 7643) #37

Closed leodido closed 5 months ago

leodido commented 5 months ago

This PR introduces:

  1. parsing modes: RFC2141 only, RFC7643 only, fallback mode (from the stricter structure to general URL structure)
  2. parsing options (which parsing mode to use, default is RFC2141-only to avoid changing the current API)
  3. SCIM (RFC7643) struct (fixes #32)
  4. SCIM parsing: FSM for RFC7643
  5. Fallback parsing: first try RFC7643 then fallback to RFC2141
  6. fixes to the errors outputting of the URN parser
  7. extensive test suite
t2y commented 5 months ago

I appreciate supporting SCIM struct. Thank you!