Update content according to latest spec (#513)
* Update content according to latest spec * Add Title to a bunch of types * Add _meta to lots of types * Address feedback, more cleanup, fix NAOT test failure
This commit is contained in:
parent
28d65470f4
commit
2bcff315f8
1 changed files with 1700 additions and 853 deletions
|
|
@ -86,9 +86,9 @@ builder.Services
|
|||
var @ref = @params.Ref;
|
||||
var argument = @params.Argument;
|
||||
|
||||
if (@ref.Type == "ref/resource")
|
||||
if (@ref is ResourceTemplateReference rtr)
|
||||
{
|
||||
var resourceId = @ref.Uri?.Split("/").Last();
|
||||
var resourceId = rtr.Uri?.Split("/").Last();
|
||||
|
||||
if (resourceId is null)
|
||||
{
|
||||
|
|
@ -103,7 +103,7 @@ builder.Services
|
|||
};
|
||||
}
|
||||
|
||||
if (@ref.Type == "ref/prompt")
|
||||
if (@ref is PromptReference pr)
|
||||
{
|
||||
if (!exampleCompletions.TryGetValue(argument.Name, out IEnumerable<string>? value))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue