Skip to content
Open
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
1 change: 1 addition & 0 deletions packages/typespec-go/.scripts/tspcompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const compiler = pkgRoot + 'node_modules/@typespec/compiler/cmd/tsp.js';
// 'moduleName': [ 'input', 'emitter option 1', 'emitter option N...' ]
// if no .tsp file is specified in input, it's assumed to be main.tsp
const httpSpecsGroup = {
'documentationgroup': ['documentation'],
'apikeygroup': ['authentication/api-key'], // ctors for API key not supported
'customgroup': ['authentication/http/custom'], // ctors for API key not supported
'oauth2group': ['authentication/oauth2'],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package documentationgroup_test

import (
"context"
"documentationgroup"
"testing"

"github.com/stretchr/testify/require"
)

func TestListsClient_BulletPointsModel(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
enumValue := documentationgroup.BulletPointsEnum("Simple")
resp, err := client.NewDocumentationListsClient().BulletPointsModel(context.Background(), documentationgroup.BulletPointsModel{Prop: &enumValue}, nil)
require.NoError(t, err)
require.Zero(t, resp)
}

func TestListsClient_Numbered(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.NewDocumentationListsClient().Numbered(context.Background(), nil)
require.NoError(t, err)
require.Zero(t, resp)
}

func TestListsClient_BulletPointsOp(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.NewDocumentationListsClient().BulletPointsOp(context.Background(), nil)
require.NoError(t, err)
require.Zero(t, resp)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package documentationgroup_test

import (
"context"
"documentationgroup"
"testing"

"github.com/stretchr/testify/require"
)

func TestTextFormattingClient_BoldText(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.NewDocumentationTextFormattingClient().BoldText(context.Background(), nil)
require.NoError(t, err)
require.Zero(t, resp)
}

func TestTextFormattingClient_CombinedFormatting(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.NewDocumentationTextFormattingClient().CombinedFormatting(context.Background(), nil)
require.NoError(t, err)
require.Zero(t, resp)
}

func TestTextFormattingClient_ItalicText(t *testing.T) {
client, err := documentationgroup.NewDocumentationClientWithNoCredential("http://localhost:3000", nil)
require.NoError(t, err)
resp, err := client.NewDocumentationTextFormattingClient().ItalicText(context.Background(), nil)
require.NoError(t, err)
require.Zero(t, resp)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading