Skip to content

Commit

Permalink
Merge pull request #1 from andooown/work/at-url
Browse files Browse the repository at this point in the history
Generate at-uri as URL instead of String
  • Loading branch information
andooown authored Aug 15, 2023
2 parents 4101dd6 + f3cd5da commit cf81403
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/LexiconGen/LexiconGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct LexiconGen: ParsableCommand {

let source = SourceFile {
ImportDecl("import Foundation")
ImportDecl("import SwiftATProtoXRPC")
ImportDecl("import ATProtoXRPC")

// Namespace enums
for def in namespaces {
Expand Down Expand Up @@ -365,6 +365,9 @@ private extension LexiconGen {
case .integer:
return "Int"

case .string(format: "at-uri"):
return "URL"

case .string(format: "datetime"):
return "Date"

Expand Down

0 comments on commit cf81403

Please sign in to comment.